$shoppings = Shoppings::select('date', 'product') ->where('customer_id', '=', $id)->get();
$customer = Customers::find($id)->first();
it does not solve the problem. It throws an error "NotFoundHttpExeption", the way of transmitting and storing this parameter must be wrong.
This wil fix it. Didn't notice it earlier:
Remove the $ from route
Route::get('customer/{idc}', [
'as' => 'customer',
'uses' => 'BaseController@customer'
]);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community