Rename dashboard to home.
This commit is contained in:
parent
7a7e366da5
commit
634c96d8d9
|
@ -59,7 +59,7 @@ public function postRegister(Request $request)
|
||||||
|
|
||||||
$this->auth->login($user);
|
$this->auth->login($user);
|
||||||
|
|
||||||
return redirect('/dashboard');
|
return redirect('/home');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -88,7 +88,7 @@ public function postLogin(Request $request)
|
||||||
|
|
||||||
if ($this->auth->attempt($credentials, $request->has('remember')))
|
if ($this->auth->attempt($credentials, $request->has('remember')))
|
||||||
{
|
{
|
||||||
return redirect('/dashboard');
|
return redirect('/home');
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect('/auth/login')
|
return redirect('/auth/login')
|
||||||
|
|
|
@ -126,7 +126,7 @@ protected function loginAndRedirect($email)
|
||||||
{
|
{
|
||||||
$this->auth->login(User::where('email', $email)->firstOrFail());
|
$this->auth->login(User::where('email', $email)->firstOrFail());
|
||||||
|
|
||||||
return redirect('/dashboard');
|
return redirect('/home');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php namespace App\Http\Controllers;
|
<?php namespace App\Http\Controllers;
|
||||||
|
|
||||||
class DashboardController extends Controller {
|
class HomeController extends Controller {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
|
@ -36,7 +36,7 @@ public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
if ($this->auth->check())
|
if ($this->auth->check())
|
||||||
{
|
{
|
||||||
return new RedirectResponse(url('/dashboard'));
|
return new RedirectResponse(url('/home'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
$router->get('/', 'WelcomeController@index');
|
$router->get('/', 'WelcomeController@index');
|
||||||
|
|
||||||
$router->get('/dashboard', 'DashboardController@index');
|
$router->get('/home', 'HomeController@index');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,16 +1,5 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="row">
|
Test
|
||||||
<div class="col-sm-10 col-sm-offset-1">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">Home</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
Welcome To Laravel.
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
@stop
|
||||||
|
|
Loading…
Reference in New Issue