Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################################
- sqlite dont support ondelete('cascade')...
- if(config('database.default') == 'sqlite'){
- $db = app()->make('db');
- $db->connection()->getPdo()->exec("pragma foreign_keys=1");
- }
- ################################################################################################
- faield tdd because sharing data via view composers solutions
- if (! $this->app->runningInConsole()) {
- \View::share('categories',Category::all());
- \View::share('tags',Tag::all());
- }
- ################################################################################################
- 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