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