database/seeds/TagsTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $tags = collect(['code', 'bug', 'help', 'solved']);
        $tags->each(function ($t) {
            \App\Tag::create([
                'name' => $t,
                'slug' => Str::slug($t),
            ]);
        });
    }
public function run ( ) { $ tags = collect ( [ 'code' , 'bug' , 'help' , 'solved' ] ) ; $ tags -> each ( function ( $ t ) { \ App \ Tag :: create ( [ 'name' => $ t , 'slug' => Str :: slug ( $ t ) , ] ) ; } ) ; }
Run the database seeds.
Run the database seeds .