reworked all of the controllers to use . for views and / for redirects

This commit is contained in:
2019-04-27 20:56:01 -05:00
parent 5564b09c3b
commit d45e8f8606
7 changed files with 20 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ class WikiController extends Controller
}
}
return view('/admin/dashboard')->with('success', 'Wiki has been purged.');
return view('admin.dashboard')->with('success', 'Wiki has been purged.');
}
public function displayRegister() {
@@ -61,7 +61,7 @@ class WikiController extends Controller
return redirect('/dashboard')->with('error', 'Already registered for the wiki!');
}
return view('wiki/user/register')->with('name', $name);
return view('wiki.user.register')->with('name', $name);
}
public function storeRegister(Request $request) {
@@ -118,7 +118,7 @@ class WikiController extends Controller
return redirect('/dashboard')->with('error', 'Login Not Found!');
}
return view('wiki/user/changepassword')->with('name', $name);
return view('wiki.user.changepassword')->with('name', $name);
}
public function changePassword(Request $request) {
@@ -152,7 +152,7 @@ class WikiController extends Controller
* Displays the page to add a user to a certain group
*/
public function displayAddUserToGroup() {
return view('wiki/displayaddug');
return view('wiki.displayaddug');
}
/**