Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ Pull this package in through Composer.
The first step is to store your presenters somewhere - anywhere. These will be simple objects that do nothing more than format data, as required.

Here's an example of a presenter.
The `@mixin`, when it points to your model, provides autocompletion on `$this` in your IDE.

```php
use Laracasts\Presenter\Presenter;

/** @mixin \User */
class UserPresenter extends Presenter {

public function fullName()
Expand Down Expand Up @@ -71,4 +73,4 @@ Notice how the call to the `present()` method (which will return your new or cac

Have fun!

Jeffrey @ [https://laracasts.com](https://laracasts.com)
Jeffrey @ [https://laracasts.com](https://laracasts.com)