Look I know it's not best-practice, strictly speaking, but setting foreign keys in Laravel is consistently an enormous pain.
Something as simple as this just fails maybe 70% of the time. Sometimes with good reason, and sometimes just... because it feels like it. Naturally there's no meaningful error message either.
Schema::table('accounts', function(Blueprint $table){
$table->integer('package_id')->unsigned();
$table->foreign('package_id')->references('id')->on('packages')->onDelete('set null');
});
Now, the app runs totally fine and all relationships work correctly without setting foreign keys in the database, so is there any actual harm in just ignoring them entirely?