Support the ongoing development of Laravel.io →

shepparddigital

Joined 20 Feb 2016

Statistics

Threads 3
Replies 3
Solutions 0
Articles 0

Unit tests generating HTTPNotFoundExceptions

I'm trying to setup some unit tests for an application/api I'm building in Laravel. For some reason...

Likes Replies

Redirecting from inside a custom class

In the constructor method of my controllers I have a line similar to the following; AdminHelper::use...

Likes Replies

one to many relationship returning empty

I've setup a basic one to many relationship, linking users to addresses. /** * User Model * * @pr...

Likes Replies
replied 6 years ago

Redirecting from inside a custom class

I figured it out; if ($hasPermissions != true) { redirect()->to('/admin/error')->send(); }

0 Likes
replied 6 years ago

Redirecting from inside a custom class

I know, I don't want to as it's the controllers constructor method that's calling in the userHasPerm...

0 Likes
replied 6 years ago
0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.