On this page
ModelNotFoundException
class ModelNotFoundException extends RecordsNotFoundException (View source)
Properties
protected TModel> | $model | Name of the affected Eloquent model. |
|
protected array<int,int|string> | $ids | The affected model IDs. |
Methods
$this | setModel(TModel> $model, array<int,int|string>|int|string $ids = []) Set the affected Eloquent model and instance ids. |
|
TModel> | getModel() Get the affected Eloquent model. |
|
array<int,int|string> | getIds() Get the affected Eloquent model IDs. |
Details
$this setModel(TModel> $model, array<int,int|string>|int|string $ids = [])
Set the affected Eloquent model and instance ids.
TModel> getModel()
Get the affected Eloquent model.
array<int,int|string> getIds()
Get the affected Eloquent model IDs.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Eloquent/ModelNotFoundException.html