/** * Run the database seeds. * * @return void */ public function run() { // $this->call(UserTableSeeder::class); App\User::unguard(); App\Company::unguard(); App\PrimarySkills::unguard(); App\SecondarySkills::unguard(); App\Platform::unguard(); $this->call(CompanyTableSeeder::class); $this->call(UserTableSeeder::class); $this->call(PrimarySkillsTableSeeder::class); $this->call(SecondarySkillsTableSeeder::class); $this->call(PlatformsTableSeeder::class); App\Platform::reguard(); App\SecondarySkills::reguard(); App\PrimarySkills::reguard(); App\Company::reguard(); App\User::reguard(); }
// pass language and quality list into movie page View::composer('products.__video', function ($view) { // get data $languages = App\Language::lists('name', 'id')->toArray(); $qualities = App\Quality::lists('name', 'id')->toArray(); $view->with('languages', $languages)->with('qualities', $qualities); }); // pass platforms list into game page View::composer('products.__game', function ($view) { // get data $platforms = App\Platform::lists('name', 'id')->toArray(); $view->with('platforms', $platforms); }); // pass languages and platforms into toolbar View::composer('_navbar', function ($view) { $languages = App\Language::all(); $platforms = App\Platform::all(); $view->with('languages', $languages)->with('platforms', $platforms); }); // pass languages and genres into toolbar View::composer('videos._control_bar', function ($view) { $languages = App\Language::lists('name', 'name')->toArray(); $genres = App\Genre::lists('name', 'name')->toArray(); $view->with('languages', $languages)->with('genres', $genres); }); // pass platforms and genres into toolbar View::composer('games._control_bar', function ($view) { $platforms = App\Platform::lists('name', 'name')->toArray(); $genres = App\Genre::lists('name', 'name')->toArray(); $view->with('platforms', $platforms)->with('genres', $genres); });