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.
32 lines
702 B
32 lines
702 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
use Illuminate\Support\Str;
|
||
|
|
||
|
class AdminSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function run()
|
||
|
{
|
||
|
DB::table('admins')->insert([
|
||
|
'id' => 1,
|
||
|
'f_name' => 'Master Admin',
|
||
|
'l_name' => 'Khandakar',
|
||
|
'phone' => '01759412381',
|
||
|
'email' => 'admin@admin.com',
|
||
|
'image' => 'def.png',
|
||
|
'password' => bcrypt(12345678),
|
||
|
'remember_token' =>Str::random(10),
|
||
|
'created_at'=>now(),
|
||
|
'updated_at'=>now()
|
||
|
]);
|
||
|
}
|
||
|
}
|