Browse Source

Merge pull request #4838 from dakira/fk-support

introduce sqlite foreign_key_constraints config option
Taylor Otwell 5 years ago
parent
commit
79e8ff4290
1 changed files with 1 additions and 0 deletions
  1. 1 0
      config/database.php

+ 1 - 0
config/database.php

@@ -37,6 +37,7 @@ return [
             'driver' => 'sqlite',
             'database' => env('DB_DATABASE', database_path('database.sqlite')),
             'prefix' => '',
+            'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
         ],
 
         'mysql' => [