ソースを参照

ログインできるように

model
コミット
8659b783f9
  1. 1
      app/Http/Controllers/User/Login.php
  2. 6
      app/Http/Controllers/User/Register.php

1
app/Http/Controllers/User/Login.php

@ -1,6 +1,7 @@
<?php
namespace App\Http\Controllers\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
// use Illuminate\Support\Facades\Log;

6
app/Http/Controllers/User/Register.php

@ -1,6 +1,7 @@
<?php
namespace App\Http\Controllers\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use App\Http\Controllers\Engine;
// use Illuminate\Support\Facades\Log;
@ -65,9 +66,8 @@ class Register {
$checkName = DB::table('users')->select('kero_token')->where('id', $addUser)->first();
setcookie('kero_token', $checkName->kero_token, time()+157788000, '/', $_SERVER['HTTP_HOST'], 0, 1);
return $this->login($r);
//return array('1');
$login = new Login;
return $login->login($r);
}
return array();

読み込み中…
キャンセル
保存