コード例 #1
0
ファイル: AuthController.php プロジェクト: xhoiyenx/referral
 private function create_admin()
 {
     if (Admin::count() < 1) {
         $user = new Admin();
         $user->username = '******';
         $user->password = app('hash')->make('admin');
         $user->save();
     }
 }