database/seeds/CategoryTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $data = array(
            [
                'name' => 'Super heroes', 
                'slug' => 'super-heroes', 
                'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore, perferendis!', 
                'color' => '#440022'
            ],
            [
                'name' => 'Geek', 
                'slug' => 'geek', 
                'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore, perferendis!', 
                'color' => '#445500'
            ]
        );
        Category::insert($data);
    }
public function run ( ) { $ data = array ( [ 'name' => 'Super heroes' , 'slug' => 'super-heroes' , 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore, perferendis!' , 'color' => '#440022' ] , [ 'name' => 'Geek' , 'slug' => 'geek' , 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore, perferendis!' , 'color' => '#445500' ] ) ; Category :: insert ( $ data ) ; }
Run the database seeds.
Run the database seeds .