4 months ago

Is there a way to make the chain dynamic?

Posted 4 months ago by Chron

I want to make it like this..

$user = strtolower($request['acc_type']).'()';

That will determine where the registered user will go.

            'email' => $request['email'],
            'password' => Hash::make($request['password']),
            'acc_type' => $request['acc_type'], //----->> It can be "Admin", "Customer", "Company"
            'firstname' => $request['firstname'],

But I got this error..

Call to a member function create() on null

Please sign in or create an account to participate in this conversation.