Added more permissions to the seeder..
This commit is contained in:
@@ -7,6 +7,17 @@ use Illuminate\Http\Response;
|
||||
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user