| Package Data | |
|---|---|
| Maintainer Username: | raymond.idema |
| Maintainer Contact: | raymond@design-code.nl (Raymond Idema) |
| Package Create Date: | 2014-05-11 |
| Package Last Update: | 2014-09-15 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 15:14:14 |
| Package Statistics | |
|---|---|
| Total Downloads: | 103 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Note: for Laravel 5 use ~2.* and for Laravel 4 use ~1.*
use Raymondidema\Presenter\Presenter;
class UserPresenter extends Presenter {
public function fullName()
{
return $this->first . ' ' . $this->last;
}
}
use Raymondidema\Presenter\PresentableTrait;
class User extends \Eloquent {
use PresentableTrait;
protected $presenter = 'UserPresenter';
}
<h1>Hello, {{ $user->present()->fullName }}.</h1>