A nova resource package of rtconner/laravel-likeable
for your laravel/nova
application.
You can install the package via composer:
composer require codeat3/laravel-nova-likeable
If you have a Nova resource Post
on which you have used the trait Likeable
, you can simply add the line in the Nova resource.
class Post extends Resource {
...
public function fields(Request $request)
{
return [
...
MorphMany::make('Likes', 'likes', \Codeat3\LaravelNovaLikeable\Resources\Like::class),
];
}
}
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email swapnilsarwe@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.