-
-
Save parzibyte/232d2aebdcbd854271ac86d8576958d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Database\Seeders; | |
use App\Models\User; | |
use Illuminate\Database\Console\Seeds\WithoutModelEvents; | |
use Illuminate\Database\Seeder; | |
use Illuminate\Support\Facades\Hash; | |
class PrimerUsuarioSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() | |
{ | |
$contraseña = "123"; | |
$user = new User([ | |
"email" => "admin@gmail.com", | |
"password" => Hash::make($contraseña), | |
"name" => "Administrador", | |
]); | |
$user->saveOrFail(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment