Last active
October 16, 2023 16:50
-
-
Save NandoKstroNet/bccd5d622b3d9fead1022069a27f56a7 to your computer and use it in GitHub Desktop.
Recursos Produto : Curso Filament 3 Tenant Driven em https://codeexperts.com.br
This file contains 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 | |
$table->string('description')->nullable(); | |
$table->text('body'); | |
$table->integer('price'); | |
$table->boolean('status'); | |
$table->integer('stock'); | |
$table->string('slug'); |
This file contains 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 | |
Tables\Columns\TextColumn::make('price')->money('BRL'), | |
Tables\Columns\TextColumn::make('created_at')->date('d/m/Y H:i:s') |
This file contains 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 | |
Forms\Components\TextInput::make('description'), | |
Forms\Components\RichEditor::make('body')->required(), | |
Forms\Components\TextInput::make('price')->required(), | |
Forms\Components\Toggle::make('status')->required(), | |
Forms\Components\TextInput::make('stock')->required(), | |
Forms\Components\TextInput::make('slug')->required(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment