laravel comprobar si la tabla tiene columnas
if (Schema::hasTable('users')) {
// The "users" table exists...
}
if (Schema::hasColumn('users', 'email')) {
// The "users" table exists and has an "email" column...
}
compruebe si la columna tiene un valor en laravel elocuente
->where(function ($query) {
$query->whereNull('exam_ends_at')
->orWhere('exam_ends_at', '>', Carbon::now());
})