web.php
1.34 KB
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
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\MainController;
/*
|--------------------------------------------------------------------------
| 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::get('/',[MainController::class, 'index'])->name('index');
//Страница Избранные
Route::get('favorite',[MainController::class, 'favorite'])->name('favorite');
//Страница контакты
Route::get('contact',[MainController::class, 'contact'])->name('contact');
//Страница каталог
Route::get('catalog',[MainController::class, 'catalog'])->name('catalog');
//Страница новости
Route::get('news',[MainController::class, 'news'])->name('news');
//Страница о компании
Route::get('about',[MainController::class, 'about'])->name('about');
//Страница объекты на карте
Route::get('maps',[MainController::class, 'mapsobj'])->name('maps');
// Политика конфедициальности
Route::get('conf', function () {
return view('conf');
})->name('conf');