Ejemplo n.º 1
0
 /**
  * Define the application's command schedule.
  *
  * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
  * @return void
  */
 protected function schedule(Schedule $schedule)
 {
     $schedule->command('inspire')->hourly();
     $schedule->call(function () {
         ApiCalls::seed(65, 'etihad-stadium', 'Etihad Stadium');
         ApiCalls::seed(66, 'old-trafford', 'Old Trafford');
     })->weekly();
 }
Ejemplo n.º 2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //
     // Uncomment the below to wipe the table clean before populating
     // DB::table('venue')->delete();
     ApiCalls::seed(65, 'etihad-stadium', 'Etihad Stadium');
     ApiCalls::seed(66, 'old-trafford', 'Old Trafford');
     // ApiCalls::mufc();
 }