Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 10 months ago.
0

$shoppings = Shoppings::select('date', 'product') ->where('customer_id', '=', $id)->get();

$customer = Customers::find($id)->first();
0

it does not solve the problem. It throws an error "NotFoundHttpExeption", the way of transmitting and storing this parameter must be wrong.

0
Solution

This wil fix it. Didn't notice it earlier:

Remove the $ from route

Route::get('customer/{idc}', [
'as' => 'customer',
'uses' => '[email protected]'
]);
0

Awesome!!! It finaly works. Tanks a lot!

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

brulbo brulbo Joined 25 Aug 2015

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.

© 2023 Laravel.io - All rights reserved.