user image

Yasen Sayed
Published in : 2022-02-22

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 Date : 2022-02-22

Best answers

2

Best answers

2

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

How can I use arabic words, paragraphs in the faker?
Publish date: 2022-03-06 | Comments: 1
Get user location (city - country) from his IP address
Publish date: 2022-03-02 | Comments: 2
Laravel Network is unreachable stream_socket_client 587
Publish date: 2022-02-16 | Comments: 4
tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0
Publish date: 2022-02-18 | Comments: 2