moons controller
This commit is contained in:
@@ -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, [
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user