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

Was able to figure it out. In the Manager class, I called:

 $workflow= App::make($class);

I did not need to set a binding in the service provider.

Last updated 2 years ago.
0

Can you help me with that? I try to do that pretty much the same thing... but... I want to Inject in Laravel 5.2 a dinamyc FormRequest

my code is to update a resource in the database but i want to validate depending of the uri...

// so instead of use Request i think i could use somethign like function update({$this->getClass()} $request, $space, $form)...


public function update(Request $request, $space, $form)
    {
        // $form is a slug of one record in my database, based on this variable i want to determinate which request i have to load dinamyc...
    }

Do you see what i try to do?

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

rbruhn rbruhn Joined 16 Apr 2014

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.