-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.php
54 lines (39 loc) · 1.48 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group(['prefix' => LaravelLocalization::setLocale()], function()
{
/** ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP **/
//Main Route
Route::get('/', 'MainController@index');
Route::resource('admin/call-back', 'Admin\CallBackController');
Route::resource('admin/contacts', 'Admin\ContactController');
//About Technology Route
Route::get('/about_technology', function () {
return view('pages.about_technology');
})->name('about_technology');
//For Media Route
Route::get('/for_media', function () {
return view('pages.for_media');
})->name('for_media');
//News Route
Route::get('/news', 'ModexNewsController@index')->name('media_about_us');
Route::post('/news/loaddata','ModexNewsController@loadDataAjax' );
Route::get('/news/{id}', 'ModexNewsController@show')->name('news_show');
//About Modex Route
Route::get('/about_modex', function () {
return view('pages.about_modex');
})->name('about_modex');
//Team Route
Route::get('/team', function () {
return view('pages.team');
})->name('team');
});