rodrigopedra/laravel-optimus

Laravel wrapper for Optimus

v2.0.0 2020-09-13 19:21 UTC

This package is auto-updated.

Last update: 2024-11-14 04:21:10 UTC


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.