laravel with function in collection get another model name code example Example: laravel collection namespace Illuminate\Database\Eloquent\Collection