Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years 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' => 'BaseController@customer'
]);
0

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

0

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.