Method |
Description |
|
findBySlug ( string $slug, array $columns = ['*'] ) : Model | Illuminate\Database\Eloquent\Collection | static[] | static | null |
Find a model by its primary slug. |
|
findBySlugOrFail ( string $slug, array $columns = ['*'] ) : Model | Illuminate\Database\Eloquent\Collection |
Find a model by its primary slug or throw an exception. |
|
getSlugKey ( ) : string |
Primary slug value of this model. |
|
getSlugKeyName ( ) : string |
Primary slug column of this model. |
|
scopeWhereSlug ( Builder $scope, string $slug ) : Builder |
Query scope for finding a model by its primary slug. |
|