if (Schema::hasTable('users')) { // The "users" table exists... } if (Schema::hasColumn('users', 'email')) { // The "users" table exists and has an "email" column... }
'game_id' => 'required|exists:games,id,another_column,NULL',