authentikate/database/seeders/DatabaseSeeder.php
Javier Feliz fa570b0ce3
Some checks failed
linter / quality (push) Successful in 3m44s
tests / ci (push) Failing after 6m35s
Update makefile and some commands
2025-08-04 19:00:29 -04:00

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);
}
}