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