Exception Property [Id_pet] does not exist on the Eloquent builder instance
Laravel 9
![Exception
Property [Id_pet] does not exist on the Eloquent builder instance](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fstock%2Funsplash%2Fq10VITrVYUM%2Fupload%2F2d7b4bb87cbe018eabb1318ffee2e81d.jpeg&w=3840&q=75)
I've got accomplished web development with expertise in various programming languages including PHP, Laravel, C#, and C++. My curiosity to learn more and my passion for coding drives me to constantly enhance my skills and create exceptional digital experiences.
This error has occurred because the controller was unable to find the primary key of the table with the command
$petstore = Petstore::find($Parameter)
So instead of find() I'll use where();
$petstore = Petstore::where('$primarykey','$parameter')->first();

