From 1830b2cb6e6c09c434d347d53d61247e9878ef4b Mon Sep 17 00:00:00 2001 From: Kovah Date: Sun, 9 Sep 2018 21:44:54 +0200 Subject: [PATCH] Rename home to dashboard --- ...{HomeController.php => DashboardController.php} | 14 ++------------ app/Http/Controllers/Auth/LoginController.php | 2 +- app/Http/Controllers/Auth/RegisterController.php | 2 +- .../Controllers/Auth/ResetPasswordController.php | 2 +- .../views/{home.blade.php => dashboard.blade.php} | 0 resources/views/partials/nav.blade.php | 2 +- routes/web.php | 6 +++--- 7 files changed, 9 insertions(+), 19 deletions(-) rename app/Http/Controllers/App/{HomeController.php => DashboardController.php} (65%) rename resources/views/{home.blade.php => dashboard.blade.php} (100%) diff --git a/app/Http/Controllers/App/HomeController.php b/app/Http/Controllers/App/DashboardController.php similarity index 65% rename from app/Http/Controllers/App/HomeController.php rename to app/Http/Controllers/App/DashboardController.php index 863722f2..bdbdfeb8 100644 --- a/app/Http/Controllers/App/HomeController.php +++ b/app/Http/Controllers/App/DashboardController.php @@ -5,18 +5,8 @@ namespace App\Http\Controllers\App; use App\Http\Controllers\Controller; use App\Models\Link; -class HomeController extends Controller +class DashboardController extends Controller { - /** - * Create a new controller instance. - * - * @return void - */ - public function __construct() - { - $this->middleware('auth'); - } - /** * Show the application dashboard. * @@ -29,7 +19,7 @@ class HomeController extends Controller ->limit(10) ->get(); - return view('home') + return view('dashboard') ->with('recent_links', $recent_links); } } diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index b2ea669a..3a1f70b8 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -25,7 +25,7 @@ class LoginController extends Controller * * @var string */ - protected $redirectTo = '/home'; + protected $redirectTo = '/dashboard'; /** * Create a new controller instance. diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index f9ce2908..b8a34c4a 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -28,7 +28,7 @@ class RegisterController extends Controller * * @var string */ - protected $redirectTo = '/home'; + protected $redirectTo = '/dashboard'; /** * Create a new controller instance. diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index cf726eec..1d99752a 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -25,7 +25,7 @@ class ResetPasswordController extends Controller * * @var string */ - protected $redirectTo = '/home'; + protected $redirectTo = '/dashboard'; /** * Create a new controller instance. diff --git a/resources/views/home.blade.php b/resources/views/dashboard.blade.php similarity index 100% rename from resources/views/home.blade.php rename to resources/views/dashboard.blade.php diff --git a/resources/views/partials/nav.blade.php b/resources/views/partials/nav.blade.php index 649b8ea8..61e3a111 100644 --- a/resources/views/partials/nav.blade.php +++ b/resources/views/partials/nav.blade.php @@ -2,7 +2,7 @@