ModelNotFoundException
class ModelNotFoundException extends RuntimeException (View source)
Properties
protected string | $model | Name of the affected Eloquent model. | |
protected int|array | $ids | The affected model IDs. |
Methods
$this | setModel(string $model, int|array $ids = []) Set the affected Eloquent model and instance ids. | |
string | getModel() Get the affected Eloquent model. | |
int|array | getIds() Get the affected Eloquent model IDs. |
Details
$this setModel(string $model, int|array $ids = [])
Set the affected Eloquent model and instance ids.
string getModel()
Get the affected Eloquent model.
int|array 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/5.3/Illuminate/Database/Eloquent/ModelNotFoundException.html