You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
643 B
31 lines
643 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use Carbon\Carbon;
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use DB;
|
||
|
|
||
|
class UsersTableSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*/
|
||
|
public function run(): void
|
||
|
{
|
||
|
DB::table('users')->insert([
|
||
|
'name'=>'Sistemas',
|
||
|
'fk_id_roles'=>1,
|
||
|
'fk_id_grupos'=>0,
|
||
|
'email'=>'sistemas',
|
||
|
'password'=> bcrypt('ZaNkV9EO'),
|
||
|
'activo'=>1,
|
||
|
'eliminado'=>0,
|
||
|
'created_at'=>Carbon::now(),
|
||
|
'updated_at'=>Carbon::now(),
|
||
|
]);
|
||
|
|
||
|
}
|
||
|
}
|