generated from thegrind/laravel-dockerized
31 lines
738 B
PHP
31 lines
738 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Application;
|
|
use App\Models\User;
|
|
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// $user = User::create([
|
|
// 'name' => 'Javier Feliz',
|
|
// 'email' => 'me@javierfeliz.com',
|
|
// 'password' => Hash::make('password')
|
|
// ]);
|
|
|
|
// Create 8 sample applications
|
|
Application::factory(8)->create();
|
|
|
|
// Create authentication tokens for testing
|
|
$this->call(AuthenticationTokenSeeder::class);
|
|
}
|
|
}
|