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

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

Create a new exception instance.

Details

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

Create a new exception instance.

Parameters

object $model
string $column
string $castType

Return Value

void

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.