database/seeders/ServiceSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $services = [
            ['name'=>'Hot Service1'],
             ['name'=> 'Another Service']
        ];
        foreach ($services as $service) {
            Service::create($service);
        }
    }
public function run ( ) { $ services = [ [ 'name' => 'Hot Service1' ] , ] ; foreach ( $ services as $ service ) { Service :: create ( $ service ) ; } }
Run the database seeds.
Run the database seeds .
// // ['name'=> 'Another Service']