Guest User

Untitled

a guest
Oct 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. ################################################################################################
  2.  
  3. sqlite dont support ondelete('cascade')...
  4.  
  5. if(config('database.default') == 'sqlite'){
  6. $db = app()->make('db');
  7. $db->connection()->getPdo()->exec("pragma foreign_keys=1");
  8. }
  9. ################################################################################################
  10.  
  11. faield tdd because sharing data via view composers solutions
  12.  
  13. if (! $this->app->runningInConsole()) {
  14. \View::share('categories',Category::all());
  15. \View::share('tags',Tag::all());
  16. }
  17. ################################################################################################
  18.  
  19. if you had faced this 2 errors (they are suparete errors) just add this code to appservice providers in boot function
Add Comment
Please, Sign In to add comment