Support the ongoing development of Laravel.io →
posted 9 years ago
Requests IOC
Last updated 2 years ago.
0

Thank you. My current system has api for every object type so a grid could be build for almost everything and which includes security checks by controllers actions allowed by user in the middleware and logging. The request approach is reusing this for free. Yes, I could have refactor the controllers actions to a separated abstraction layer and do the security and logging based on that but this task will take too much time currently.

0

@elpd have you had any luck in resolving this or figuring out a better solution. I just happened across the same issue. Trying to do something similar to yourself.

0

After a little bit more digging I found someone else trying to do the same thing it looks like you should be able to achieve what you are looking for using something on the lines of

app()->handle($request)

here is where I found taylor discussing the issue on github

0

same issue in Laravel 5.1 and I have to used

app()->handle($request)

let Application handle right request.

Don't know this is proper way to do this

0

Sign in to participate in this thread!

Eventy

Your banner here too?

elpd elpd Joined 10 Mar 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.