InvalidCastException

class InvalidCastException extends RuntimeException (View source)

Properties

string $model

The name of the affected Eloquent model.

string $column

The name of the column.

string $castType

The name of the cast type.

Methods

InvalidCastException __construct(object $model, string $column, string $castType)

Create a new exception instance.

Details

InvalidCastException __construct(object $model, string $column, string $castType)

Create a new exception instance.

Parameters

object $model
string $column
string $castType

Return Value

InvalidCastException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Database/Eloquent/InvalidCastException.html