Support the ongoing development of →
Laravel Requests Database
Last updated 2 years ago.

That error means $logbook is null but you're trying to assign a property to it as if it were an object. I'm guessing if you try to debug $req->input('id') you will find that it does not contain what you expect it to, which in turns causes the find() method to return null instead of your model.


Sign in to participate in this thread!


Your banner here too?

Morish webfuelcode Joined 20 May 2020


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.