class ModelNotFoundException extends RecordsNotFoundException (View source)

Properties

protected TModel> $model

Name of the affected Eloquent model.

protected array<int,int|string> $ids

The affected model IDs.

Methods

$this
setModel(TModel> $model, array<int,int|string>|int|string $ids = [])

Set the affected Eloquent model and instance ids.

TModel>
getModel()

Get the affected Eloquent model.

array<int,int|string>
getIds()

Get the affected Eloquent model IDs.

Details

$this setModel(TModel> $model, array<int,int|string>|int|string $ids = [])

Set the affected Eloquent model and instance ids.

Parameters

TModel> $model
array<int,int|string>|int|string $ids

Return Value

$this

TModel> getModel()

Get the affected Eloquent model.

Return Value

TModel>

array<int,int|string> getIds()

Get the affected Eloquent model IDs.

Return Value

array<int,int|string>