database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        $this->call(RolSeeder::class);
        DB::table('users')->insert([
            'name' => 'Admin',
            'email' => 'admin@admin.com',
            'password' => Hash::make('secreto1'),
            'rol_id'=> 1,
            'created_at'=> now(),
            'updated_at' => now(),                        
        ]);        
    }
public function run ( ) { $ this -> call ( RolSeeder :: class ) ; DB :: table ( 'users' ) -> insert ( [ 'name' => 'Admin' , 'email' => 'admin@admin.com' , 'password' => Hash :: make ( 'secreto1' ) , 'rol_id' => 1 , 'created_at' => now ( ) , 'updated_at' => now ( ) , ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create();