update patch 1

This commit is contained in:
fiqhpratama
2024-12-02 01:18:34 +07:00
parent 453d9bb470
commit 25026b0a85
3380 changed files with 103529 additions and 363623 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
use App\Models\Admin;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class AdminSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$admin = Admin::where('username', 'superadmin')->first();
if (is_null($admin)) {
$admin = new Admin();
$admin->name = "Super Admin";
$admin->email = "superadmin@email.com";
$admin->username = "superadmin";
$admin->password = Hash::make('12345678');
$admin->save();
}
}
}