rodrigopedra / laravel-optimus
Laravel wrapper for Optimus
v2.0.0
2020-09-13 19:21 UTC
Requires
- php: >=7.2.5
- illuminate/config: ^7.0|^8.0
- illuminate/console: ^7.0|^8.0
- illuminate/database: ^7.0|^8.0
- illuminate/support: ^7.0|^8.0
- jenssegers/optimus: ^1.1
- symfony/process: ~5.0
README
Bridge to jenssegers/optimus
for Laravel.
It handles Route Model Binding to use a hashed id.
Installation
composer require rodrigopedra/laravel-optimus
It will auto-register the ServiceProvider.
Configuration
Run this command to generate your app's secret numbers and add them to you .env
:
php artisan optimus:seed
Usage
Add the UsesOptimusKey
trait to the models you want to have an Optimus route key.
This trait will handle the custom model binding.
License
The MIT License (MIT). Please see License File for more information.