Tweak welcome view.
This commit is contained in:
parent
e0c54591bf
commit
f8aeffc76a
|
@ -15,6 +15,21 @@ class WelcomeController extends Controller {
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new controller instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware('guest');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the application welcome screen to the user.
|
||||||
|
*
|
||||||
|
* @return Response
|
||||||
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
return view('welcome');
|
return view('welcome');
|
||||||
|
|
|
@ -36,7 +36,7 @@ public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
if ($this->auth->check())
|
if ($this->auth->check())
|
||||||
{
|
{
|
||||||
return new RedirectResponse(url('/'));
|
return new RedirectResponse(url('/dashboard'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
|
Loading…
Reference in New Issue