It's not really Eloquent, to add an Eloquent model to your collection you have some options:
In Laravel 5 you can benefit from a helper
$c = collect(new Post);
$c = collect();
Hope it helps!!
The code below solved my problem:
$messages ...READ MORE
First you have to go to ...READ MORE
Facades provide a "static" interface to classes ...READ MORE
Migrations are like version control for your database, ...READ MORE
Named route is used to give specific ...READ MORE
This is simple you just need to ...READ MORE
Named routing is another amazing feature of ...READ MORE
We need to create a new model ...READ MORE
To create a migration, you may ...READ MORE
Already have an account? Sign in.