26 lines
473 B
PHP
Executable File
26 lines
473 B
PHP
Executable File
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
User::create([
|
|
'name' => 'Admin',
|
|
'email' => 'admin@gmail.com',
|
|
'password' => Hash::make('secret'),
|
|
]);
|
|
}
|
|
}
|