Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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