added a few constructs for controllers

This commit is contained in:
2018-11-02 06:42:19 -05:00
parent 96e8a1fc14
commit f32444d479
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ use App\Models\DokuUser;
class WikiController extends Controller
{
public function __construct() {
$this->middleware('auth');
}
public function displayRegister() {
//make user name syntax like we want it.
$name = Auth::user()->name;

View File

@@ -14,6 +14,6 @@ class Authenticate extends Middleware
*/
protected function redirectTo($request)
{
return route('login');
return route('/login');
}
}