Returns a value indicating whether the model has an attribute with the specified name.
public hasAttribute ( string $name ) : boolean | ||
$name | string | the name of the attribute |
return | boolean | whether the model has an attribute with the specified name. |