itskp-odense/Backend/migrations/seedUser.php

6 lines
214 B
PHP
Raw Normal View History

<?php
require "../../bootstrap.php";
use Backend\Model\User;
$createUser = User::Create(['name' => "admin", 'password' => password_hash('aA123456&', PASSWORD_DEFAULT), 'permission' => 0]);
echo "User was created";