Illuminate\Database\Eloquent\Model::isDateCastable PHP Method

isDateCastable() protected method

Determine whether a value is Date / DateTime castable for inbound manipulation.
protected isDateCastable ( string $key ) : boolean
$key string
return boolean
    protected function isDateCastable($key)
    {
        return $this->hasCast($key, ['date', 'datetime']);
    }
Model