This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filament\PageTemplates; | |
use Filament\Forms\Components\Repeater; | |
use Filament\Forms\Components\RichEditor; | |
use Filament\Forms\Components\TextInput; | |
final class Faq | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Rules; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Contracts\Validation\Rule; | |
class UniqueJsonRule implements Rule | |
{ | |
protected ?string $ignoreColumn = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filament\Traits; | |
use Filament\Tables; | |
use Filament\Pages\Actions\Modal; | |
use Illuminate\Database\Eloquent\Model; | |
use Filament\Pages\Actions\ButtonAction; | |
use Filament\Resources\Pages\Concerns\HasActiveFormLocaleSelect; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function form(Form $form): Form | |
{ | |
return $form | |
->schema([ | |
Forms\Components\Grid::make() | |
->schema([ | |
Forms\Components\Card::make() | |
->schema([ | |
Forms\Components\TextInput::make('name') | |
->required() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// router/index.js | |
import Vue from 'vue' | |
import VueRouter from 'vue-router' | |
import routes from './routes' | |
import middlewarePipeline from './middleware-pipeline' | |
Vue.use(VueRouter) |