agungsugiarto / boilerplate

CodeIgniter4 Boilerplate based on AdminLTE 3 with user management, roles, permissions, ...
MIT License
158 stars 49 forks source link

Permission Filter Issue #70

Closed AbdulRafay closed 4 years ago

AbdulRafay commented 4 years ago

Describe the bug I have installed the package step-by-step, only issue that i faced during installation was, seeder didn't work. After configuring rest of the settings, database, views and filter etc, when i navigate to /admin i get an exception:

Fatal error: Declaration of agungsugiarto\boilerplate\Filters\PermissionFilter::after(CodeIgniter\HTTP\RequestInterface $request, CodeIgniter\HTTP\ResponseInterface $response) must be compatible with CodeIgniter\Filters\FilterInterface::after(CodeIgniter\HTTP\RequestInterface $request, CodeIgniter\HTTP\ResponseInterface $response, $arguments = NULL) in /mnt/hgfs/apps/alhaan_app/ciapp/vendor/agungsugiarto/boilerplate/src/Filters/PermissionFilter.php on line 14

To Reproduce Steps to reproduce the behavior:

  1. please have a look at the issue at this URL: https://ea62ebf1f416.ngrok.io/admin

Screenshots image

I must be doing something wrong, can someone please point me in right direction.

Regards

AbdulRafay commented 4 years ago

finally get it to work. I changed following in Filters.php

please see below my Filters.php

image

can some please have a look at this configuration changes and comment if i missed something trivial

Regards

AbdulRafay commented 4 years ago

thanks @agungsugiarto