Added more permissions to the seeder..
This commit is contained in:
parent
620902d7d8
commit
14b745dc2b
|
@ -8,6 +8,17 @@ use App\Contact;
|
||||||
|
|
||||||
class ContactController extends Controller
|
class ContactController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:contact.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:contact.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:contact.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:contact.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:contact.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*
|
*
|
||||||
|
|
|
@ -10,6 +10,17 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class EventController extends Controller
|
class EventController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:event.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:event.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:event.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:event.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:event.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource..
|
* Display a listing of the resource..
|
||||||
*
|
*
|
||||||
|
|
|
@ -9,6 +9,17 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class FeedbackController extends Controller
|
class FeedbackController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:feedback.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:feedback.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:feedback.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:feedback.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:feedback.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*
|
*
|
||||||
|
|
|
@ -10,6 +10,17 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class MenuPlanController extends Controller
|
class MenuPlanController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:menuplan.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:menuplan.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:menuplan.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:menuplan.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:menuplan.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,17 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class ResourceCategoryController extends Controller
|
class ResourceCategoryController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:resource.category.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:resource.category.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:resource.category.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:resource.category.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:resource.category.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,17 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class ResourceController extends Controller
|
class ResourceController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:resource.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:resource.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:resource.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:resource.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:resource.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,17 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class ResourceExtensionController extends Controller
|
class ResourceExtensionController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware([ "auth" ]);
|
||||||
|
|
||||||
|
$this->middleware([ "check.auth:resource.extension.list" ])->only("index");
|
||||||
|
$this->middleware([ "check.auth:resource.extension.show" ])->only("show");
|
||||||
|
$this->middleware([ "check.auth:resource.extension.create" ])->only("create", "store");
|
||||||
|
$this->middleware([ "check.auth:resource.extension.edit" ])->only("edit", "update");
|
||||||
|
$this->middleware([ "check.auth:resource.extension.delete" ])->only("delete");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue