moons controller

This commit is contained in:
2019-03-08 14:06:34 -06:00
parent bfda1a0939
commit 0f9df65a6f
2 changed files with 1 additions and 7 deletions

View File

@@ -162,12 +162,6 @@ class AdminController extends Controller
return redirect('/admin/dashboard')->with('success', 'User deleted from the site.'); return redirect('/admin/dashboard')->with('success', 'User deleted from the site.');
} }
public function displayAllowedLogins() {
$logins = AllowedLogin::all();
return view('admin.allowedlogins')->with('logins', $logins);
}
public function addAllowedLogin(Request $request) { public function addAllowedLogin(Request $request) {
//Set the parameters to validate the form //Set the parameters to validate the form
$this->validate($request, [ $this->validate($request, [

View File

@@ -20,7 +20,7 @@ class MoonsController extends Controller
{ {
public function __construct() { public function __construct() {
$this->middleware('auth'); $this->middleware('auth');
$this->middleware('role:User'); $this->middleware('role:Renter');
} }
/** /**