| Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('test', 'HomeController@test'); Route::get('/', 'HomeController@index'); Route::get('{id}/{alias}', 'HomeController@product'); Route::get('category/{id}/{alias}', 'HomeController@category'); // Theme changing Route::get('theme/{theme}', 'HomeController@theme'); // Authentication routes... Route::controller('account', 'Auth\\AuthController'); // Password routes... Route::controller('password', 'Auth\\PasswordController'); // Order routes Route::resource('order', 'OrderController'); // Shopping cart routes Route::get('cart', 'ShoppingCartController@detail'); Route::get('cart/add', 'ShoppingCartController@addToCart'); Route::post('cart/update', 'ShoppingCartController@updateCart'); Route::get('cart/delete', 'ShoppingCartController@deleteFromCart'); Route::get('/productlist', 'HomeController@productList'); Route::get('/test-angular', function () { return view('test'); }); Route::get('json/districts/{id}', function ($id) { $city = App\City::findOrFail($id); $districts = $city->districts; return json_encode($districts); });