/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Percent::create(['percent' => 0]);
 }
Example #2
0
 public function compose(View $view)
 {
     $percent = Percent::all()->first();
     $view->with('percent', $percent);
 }