how to use with in laravel for a model inside a model code example Example: laravel use model inside blade App\Models\ModelName::ClassName('parameter');