I'm trying to setup some unit tests for an application/api I'm building in Laravel. For some reason...
In the constructor method of my controllers I have a line similar to the following; AdminHelper::use...
I've setup a basic one to many relationship, linking users to addresses. /** * User Model * * @pr...
I figured it out; if ($hasPermissions != true) { redirect()->to('/admin/error')->send(); }
I know, I don't want to as it's the controllers constructor method that's calling in the userHasPerm...
The Laravel portal for problem solving, knowledge sharing and community building.
The community