user image

Yasen Sayed
Published in : 2022-02-22

call_user_func() expects parameter 1 to be a valid callback


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



Mahmoud Santos Date : 2022-02-22

Best answers


Best answers


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 :)

Yasen Sayed Date : 2022-02-22

Thanks a lot, it's working correctly.

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

What's the best approach to use Elasticsearch with Larave?
Publish date: 2022-02-21 | Comments: 2
How can I validate recaptcha in Livewire class ??
Publish date: 2022-02-23 | Comments: 2
How I can exclude private property from var_dump or object?
Publish date: 2022-02-22 | Comments: 2
[solved] Nginx 413 Request Entity Too Large - Laravel
Publish date: 2022-02-01 | Comments: 2