Support the ongoing development of Laravel.io →
Laravel Requests Database
Last updated 7 months ago.
0

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.

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Morish webfuelcode Joined 20 May 2020

Moderators

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

Your logo here?

Laravel.io

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

© 2022 Laravel.io - All rights reserved.