web.php 1.34 KB
<?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');