class ModelNotFoundException extends RecordsNotFoundException (View source)
| protected TModel> | $model | Name of the affected Eloquent model. | |
| protected array<int,int|string> | $ids | The affected model IDs. |
| $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. |
Set the affected Eloquent model and instance ids.
Get the affected Eloquent model.
Get the affected Eloquent model IDs.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/Eloquent/ModelNotFoundException.html