public function run()
 {
     foreach ($this->municipalitiesArray as $municipality) {
         Municipality::create($municipality);
     }
 }
Exemplo n.º 2
0
 /**
  * Bind data to the view.
  *
  * @param View $view
  */
 public function compose(View $view)
 {
     $municipalities = Municipality::allLists();
     $communes = [0 => 'No aplica', 1, 2, 3, 4, 5, 6, 7, 8];
     $view->with(['municipalities' => $municipalities, 'communes' => $communes]);
 }