Skip to content

Instantly share code, notes, and snippets.

@beyazitkolemen
Created August 1, 2017 10:25
Show Gist options
  • Save beyazitkolemen/3f1288c80f43e2ea0e20e23ba8d52cd6 to your computer and use it in GitHub Desktop.
Save beyazitkolemen/3f1288c80f43e2ea0e20e23ba8d52cd6 to your computer and use it in GitHub Desktop.
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'site'],
],
function () {
Route::get('/', 'Front\SiteController@getIndex')->name('site.index');
Route::get(LaravelLocalization::transRoute('routes.sayfa') . '/{page_slug?}', 'Front\SiteController@getPage')->name('site.page');
Route::get(LaravelLocalization::transRoute('routes.kategori') . '/{cat?}', 'Front\SiteController@getCategories')->name('site.categories');
Route::get(LaravelLocalization::transRoute('routes.urun') . '/{ads_slug?}', 'Front\SiteController@getProductDetail')->name('site.product');
Route::get(LaravelLocalization::transRoute('routes.magazalar') . '/', 'Front\SiteController@getShops')->name('site.shops');
Route::get(LaravelLocalization::transRoute('routes.haberler') . '/', 'Front\SiteController@getNews')->name('site.news');
Route::get(LaravelLocalization::transRoute('routes.yardim') . '/', 'Front\SiteController@getHelps')->name('site.help');
Route::get(LaravelLocalization::transRoute('routes.magazadetay') . '/{slug?}/{type?}', 'Front\SiteController@getShopDetail')->name('site.shopdetail');
Route::get(LaravelLocalization::transRoute('routes.iletisim') . '/', 'Front\SiteController@getContact')->name('site.contact');
Route::get(LaravelLocalization::transRoute('routes.ara') . '/{keyword?}', 'Front\SiteController@getSearch')->name('site.search');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment