Исключение ModelNotFoundException
класс ModelNotFoundException расширяет RecordsNotFoundException (Просмотреть исходный код)
Свойства
| protected TModel> | $model | Имя затронутой Eloquent модели. | |
| protected array<int,int|string> | $ids | Идентификаторы затронутых моделей. |
Методы
| $this | setModel(TModel> $model, array<int,int|string>|int|string $ids = []) Установить затронутую Eloquent модель и идентификаторы экземпляров. | |
| TModel> | getModel() Получить затронутую Eloquent модель. | |
| array<int,int|string> | getIds() Получить идентификаторы затронутых Eloquent моделей. |
Подробности
$this setModel(TModel> $model, array<int,int|string>|int|string $ids = [])
Установить затронутую Eloquent модель и идентификаторы экземпляров.
TModel> getModel()
Получить затронутую Eloquent модель.
array<int,int|string> getIds()
Получить идентификаторы затронутых Eloquent моделей.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Database/Eloquent/ModelNotFoundException.html