Am trying to use two different functions from one controller in a single page route
Route::get('/cart','App\Http\Controllers\Frontend\CartController@index');
Route::get('/cart','App\Http\Controllers\Frontend\CartController@alldata');
But the problem is the function alldata
works where the function index
doesn't