feat: add tagging functionality
to entries model and related migrations
This commit is contained in:
parent
4afa656e94
commit
4e1824d49a
7 changed files with 361 additions and 14 deletions
|
|
@ -14,6 +14,7 @@ use Filament\Schemas\Schema;
|
|||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
use Spatie\MediaLibrary\MediaCollections\Models\Media;
|
||||
use Filament\Forms\Components\SpatieTagsInput;
|
||||
|
||||
class EntryForm
|
||||
{
|
||||
|
|
@ -33,6 +34,9 @@ class EntryForm
|
|||
->readOnly(),
|
||||
Textarea::make('description')
|
||||
->columnSpanFull(),
|
||||
SpatieTagsInput::make('tags')
|
||||
->type('entry-tags')
|
||||
->columnSpanFull(),
|
||||
SpatieMediaLibraryFileUpload::make('featured_image')
|
||||
->collection('featured-image')
|
||||
->image()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue