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'=>'Information Technology',
            'description' => 'IT'
        ]);
    }
public function run ( ) { Category :: create ( [ 'name' => 'Information Technology' , 'description' => 'IT' ] ) ; }
Run the database seeds.
Run the database seeds .