laravel create a collection based on model code example Example: laravel collection namespace Illuminate\Database\Eloquent\Collection