class ModelNotFoundException extends RecordsNotFoundException

Properties

protected TModel> $model

Name of the affected Eloquent model.

protected array<int, int|string> $ids

The affected model IDs.

Methods

setModel(string $model, array|int|string|UnitEnum $ids = [])

Set the affected Eloquent model and instance ids.

string
getModel()

Get the affected Eloquent model.

array
getIds()

Get the affected Eloquent model IDs.

Details

at line 38
ModelNotFoundException setModel(string $model, array|int|string|UnitEnum $ids = [])

Set the affected Eloquent model and instance ids.

Parameters

string $model
array|int|string|UnitEnum $ids

Return Value

ModelNotFoundException

at line 59
string getModel()

Get the affected Eloquent model.

Return Value

string

at line 69
array getIds()

Get the affected Eloquent model IDs.

Return Value

array