codeat3/laravel-nova-likeable

1.1.0 2021-03-12 13:21 UTC

This package is auto-updated.

Last update: 2024-12-12 21:09:33 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

A nova resource package of rtconner/laravel-likeable for your laravel/nova application.

Installation

You can install the package via composer:

composer require codeat3/laravel-nova-likeable

Usage

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),
            ];
        }
    }

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email swapnilsarwe@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.