class Illuminate / Database / Eloquent / ModelNotFoundException
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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.