- laravel
- laravel nova v2 or greater
composer require sohbatiha/nova-posts
Then you can publish and migrate to create the needed tags table
php artisan vendor:publish
php artisan migrate
for add additional fields to posts resource add below code to your service provider :
- array key values uses for priority of each field.
#use Illuminate\Support\Facades\Event;
#use Laravel\Nova\Fields\ID;
public function boot()
{
//...
Event::listen("PostPackage::Fields" , function(){
return [
11=>ID::make()->sortable(),
//and other fields ...
];
});
//...
};
- English
- Persian