caffeinated / presenter Goto Github PK
View Code? Open in Web Editor NEW:clapper: Laravel 5 View Presenters
License: MIT License
:clapper: Laravel 5 View Presenters
License: MIT License
Having this error, I am trying a very basic example just to test.
Laravel 5.1
ErrorException in PresentableTrait.php line 24:
Please set the $presenter property to your presenter path. (View: pathtoview/view.php)
Model
namespace App\Models\Main;
use Caffeinated\Presenter\Traits\PresentableTrait;
use Illuminate\Database\Eloquent\Model;
class Phone extends Model
{
use PresentableTrait;
protected $presenter = 'App\Presenters\Phone';
protected $table = 'd_m_phone';
}
Presenter
namespace App\Presenters;
use Caffeinated\Presenter\Presenter;
class Phone extends Presenter
{
public function phoneDisplay()
{
return $this->number;
}
}
In the view
{{ $phone->present()->phoneDisplay }}
Any ideas why it's showing that error? I checked for typos everywhere.
- Installing caffeinated/presenter (v1.0.1)
Downloading: Connecting... Failed to download caffeinated/presenter from dist: The "https://api.github.com/repos/caffeinated/presenter/zipball/5001cfc47665f57c0c6ecd9d87072d52ea79584f" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing caffeinated/presenter (v1.0.1)
Cloning 5001cfc47665f57c0c6ecd9d87072d52ea79584f
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.