database/seeders/CategorySeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Category::create([
            'name' => 'food'
        ]);
        Category::create([
            'name' => 'drink'
        ]);
    }
public function run ( ) { Category :: create ( [ 'name' => 'food' ] ) ; Category :: create ( [ 'name' => 'drink' ] ) ; }
Run the database seeds.
Run the database seeds .