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
+26
View File
@@ -0,0 +1,26 @@
<?php
use App\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$user = User::where('email', 'user1@gmail.com')->first();
if (is_null($user)) {
$user = new User();
$user->name = "User 1";
$user->username = "user1";
$user->email = "user1@gmail.com";
$user->password = Hash::make('12345678');
$user->save();
}
}
}