Preparing Your Model

The implementation of this package is so simple, all what you need to do is the following:

Model Implementation

  • Implement CanPresent Interface
  • Use UsesPresenters Trait
1use Coderflex\LaravelPresenter\Concerns\CanPresent;
2use Coderflex\LaravelPresenter\Concerns\UsesPresenters;
3// ...
4 
5class User extends Authenticatable implements CanPresent
6{
7 use UsesPresenters;
8 
9 // ...
10}

Join our newsletter

Subscribe to Our Newsletter and never miss our offers, latest news, Articles, etc.

We care about the protection of your data. Read our Privacy Policy.