Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Propaganistas committed Sep 19, 2016
1 parent 4e2453c commit 7e410aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -35,7 +35,7 @@ Enables automatic Eloquent model ID obfuscation in routes using [Optimus](https:

### Usage

First of all, make sure the model is bound to Laravel's Router using the `fakeIdModel()` method (e.g. on top of the `routes.php` file):
First of all, make sure the model is bound to Laravel's Router using the `fakeIdModel()` method, e.g. on top of the `routes.php` file (or in the `boot()` method of `RouteServiceProvider` if you use route caching):

```php
Route::fakeIdModel('mymodel', 'App\MyModel');
Expand Down

0 comments on commit 7e410aa

Please sign in to comment.