If you're searching for specific ID try:
$object = YourModel::find($id); // your id here
$object = YourModel::where('id', '=', $id); $object = $object->first();
First method is better.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.