class Illuminate / Database / Eloquent / ModelNotFoundException

ModelNotFoundException

Extends

Properties

protected

$model class-string<\TModel>

Name of the affected Eloquent model.

Default: null
protected

$ids array|string>

The affected model IDs.

Default: null

Methods

public

setModel ( $model , $ids ) : $this

Set the affected Eloquent model and instance ids.

Parameters

  • $model class-string<\TModel>
  • $ids array|string>|int|string
public

getModel ( ) : class-string<\TModel>

Get the affected Eloquent model.

public

getIds ( ) : array|string>

Get the affected Eloquent model IDs.