Skip to content
Favre Anael edited this page May 16, 2016 · 3 revisions
getColumns()

Get the columns of your eloquent model.

$userColumns = $user->getColumns($tablePrefix = false);
isNullableColumn()

Check if the eloquent model column could be null.

if($user->isNullableColumn('email') {
    // The user email can be null
}