Created
August 1, 2017 10:25
-
-
Save beyazitkolemen/3f1288c80f43e2ea0e20e23ba8d52cd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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