W3cubDocs

/Laravel 8

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.

Parameters

string $model
int|array $ids

Return Value

$this

string getModel()

Get the affected Eloquent model.

Return Value

string

int|array getIds()

Get the affected Eloquent model IDs.

Return Value

int|array

© 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