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