Download the PHP package the-3labs-team/nova-busy-resource-field without Composer
On this page you can find all versions of the php package the-3labs-team/nova-busy-resource-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download the-3labs-team/nova-busy-resource-field
More information about the-3labs-team/nova-busy-resource-field
Files in the-3labs-team/nova-busy-resource-field
Package nova-busy-resource-field
Short Description A Laravel Nova field.
License MIT
Informations about the package nova-busy-resource-field
Laravel Nova Busy Resource Field
Have you ever dreamed of having a mechanism in Laravel Nova that would allow you to know if a resource is occupied by another user?
Introducing Nova Resource Busy Field, the first package for Laravel Nova that lets you know if a resource is occupied by another user.
From the secret labs of The3LabsTeam this is a completely opensource package designed to make life easier for those using Laravel Nova as a multi-user CMS.
🌟 Here are some great features:
- It is model-agnostic, you can decide which resource will be considered "occupiable"
- Fully configurable, you can choose the threshold timeout and old logs to be deleted
- It is native to Laravel Nova, there is only one migration to launch
- It is fully reversible, no Laravel Nova models and/or views are touched
- Lets you know from the index of a resource if it is occupied
- Receive an alert if you enter an edit of a busy resource
Installation
For install this package, in your composer.json add the repository:
You need to publish the migration file:
Remember to launch the migrations:
Also, you can publish the config file:
Usage
First you need to make a model "busiable".
For example, if you want to make the Article model busiable, you need to add the
trait The3labsTeam\NovaBusyResourceField\App\Traits\Busiable to it:
Then, in your Nova resource, you can add the field:
For the best experience, you can delete old records in database.
For this, you need to add in your App\Console\Kernel, command for delete old records every minute.
Sponsor
All versions of nova-busy-resource-field with dependencies
illuminate/http Version ^12.0
illuminate/routing Version ^12.0
illuminate/support Version ^12.0
outl1ne/nova-translations-loader Version ^5.0