Download the PHP package moonshiner/safe-queuing without Composer
On this page you can find all versions of the php package moonshiner/safe-queuing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moonshiner/safe-queuing
More information about moonshiner/safe-queuing
Files in moonshiner/safe-queuing
Package safe-queuing
Short Description Package to manage bookings and reservations for timeslots
License MIT
Homepage https://github.com/moonshiner/safe-queuing
Informations about the package safe-queuing
Laravel Safe Queuing | manage timeslots and limit reservations
This package helps you to attach timeslot and reservation capabilities to your existing Eloquent Models in Laravel.
Installation
You can install the package via composer:
You can use the package for timeslot calculation only. To use the reservation capabilities of the package you need to publish the migrations. If you want to change the table name publishing the config is necessary as well. To run the publish command you need to add the Service Provider:
If you want to specify a custom table name, you'll need to publish and edit the configuration file:
Publishing and running the migrations for the usage of reservations:
Usage
You can simply add timeslots to your existing Model via the HasTimeslots
Trait.
To better configure the contraints for the timeslots you can add the following functions to your model to configure when timeslots are available:
To show all the timeslots available you can use:
To show all the reservations run:
You can filter Timeslots
To add a reservations run:
Testing
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 [email protected] instead of using the issue tracker.
Credits
- Florian Bauer
- Raphael Fleischmann
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.