user

Yasen Sayed

22 Feb 2022

call_user_func() expects parameter 1 to be a valid callback

Laravel

Hello guys, any one can help me to fix this problem?

 

Comments

Mahmoud Santos

22 Feb 2022

Best Answer

best answer

You should use it as an array and add the model name & the method you like.

 

call_user_func([$modelName, $method]);

Should it works for you :)

Replies

Yasen Sayed

22 Feb 2022

Thanks a lot, it's working correctly.

© 2024 Copyrights reserved for web-brackets.com