Rename views to match controllers's actions
MODIFY
app/Http/Controllers/DashboardController.php
app/Http/Controllers/DashboardController.php
@@ -6,6 +6,6 @@ use Illuminate\Http\Request;
class DashboardController extends Controller {
public function index() {
- return view('dashboard');
+ return view('dashboard.index');
}
}

MODIFY
app/Http/Controllers/LoginController.php
app/Http/Controllers/LoginController.php
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Auth;
class LoginController extends Controller {
public function index() {
- return view('login');
+ return view('login.index');
}
public function store(Request $request) {

MODIFY
app/Http/Controllers/SettingsController.php
app/Http/Controllers/SettingsController.php
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Auth;
class SettingsController extends Controller {
public function index() {
- return view('settings');
+ return view('settings.index');
}
public function store(Request $request) {

RENAME
resources/views/dashboard.blade.php
resources/views/dashboard/index.blade.php
RENAME
resources/views/login.blade.php
resources/views/login/index.blade.php
RENAME
resources/views/settings.blade.php
resources/views/settings/index.blade.php
Rename views to match controllers's actions