database/seeds/SeedPriorities.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('priorities')->delete();
        Priority::create([
            'name'   => 'Urgente'
        ]);
        Priority::create([
            'name'   => 'Alta'
        ]);
        Priority::create([
            'name'   => 'Media'
        ]);
        Priority::create([
            'name'   => 'Baja'
        ]);
    }
public function run ( ) { DB :: table ( 'priorities' ) -> delete ( ) ; Priority :: create ( [ 'name' => 'Urgente' ] ) ; Priority :: create ( [ 'name' => 'Alta' ] ) ; Priority :: create ( [ 'name' => 'Media' ] ) ; Priority :: create ( [ 'name' => 'Baja' ] ) ; }
Run the database seeds.
Run the database seeds .