set foreign keys onDelete() in pivot tables of projects
Issue is that, for example, if I delete a strain associated to 2 projects, then the project_strains pivot table still has entries referencing the deleted strain. Those entries should be deleted with the strain. Same is true when deleting a project.
I understand that this functionality is implemented in vendor/tcg/voyager/migrations/2016_11_30_141208_create_permission_role_table.php
by setting this:
$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');