Browse Source

Rename dashboard to home.

Taylor Otwell 10 years ago
parent
commit
634c96d8d9

+ 2 - 2
app/Http/Controllers/Auth/AuthController.php

@@ -59,7 +59,7 @@ class AuthController extends Controller {
 
 		$this->auth->login($user);
 
-		return redirect('/dashboard');
+		return redirect('/home');
 	}
 
 	/**
@@ -88,7 +88,7 @@ class AuthController extends Controller {
 
 		if ($this->auth->attempt($credentials, $request->has('remember')))
 		{
-			return redirect('/dashboard');
+			return redirect('/home');
 		}
 
 		return redirect('/auth/login')

+ 1 - 1
app/Http/Controllers/Auth/PasswordController.php

@@ -126,7 +126,7 @@ class PasswordController extends Controller {
 	{
 		$this->auth->login(User::where('email', $email)->firstOrFail());
 
-		return redirect('/dashboard');
+		return redirect('/home');
 	}
 
 }

+ 1 - 1
app/Http/Controllers/DashboardController.php → app/Http/Controllers/HomeController.php

@@ -1,6 +1,6 @@
 <?php namespace App\Http\Controllers;
 
-class DashboardController extends Controller {
+class HomeController extends Controller {
 
 	/**
 	 * Create a new controller instance.

+ 1 - 1
app/Http/Middleware/RedirectIfAuthenticated.php

@@ -36,7 +36,7 @@ class RedirectIfAuthenticated implements Middleware {
 	{
 		if ($this->auth->check())
 		{
-			return new RedirectResponse(url('/dashboard'));
+			return new RedirectResponse(url('/home'));
 		}
 
 		return $next($request);

+ 1 - 1
app/Http/routes.php

@@ -13,7 +13,7 @@
 
 $router->get('/', 'WelcomeController@index');
 
-$router->get('/dashboard', 'DashboardController@index');
+$router->get('/home', 'HomeController@index');
 
 /*
 |--------------------------------------------------------------------------

+ 1 - 12
resources/views/welcome.blade.php

@@ -1,16 +1,5 @@
 @extends('layouts.app')
 
 @section('content')
-<div class="row">
-	<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>
+Test
 @stop