Added Breeze

This commit is contained in:
amikhaylov
2026-05-18 23:43:26 +03:00
parent 0c06d83b0b
commit c9a514b0fa
17 changed files with 249 additions and 59 deletions
+25
View File
@@ -1,5 +1,6 @@
<?php
use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\MainController;
use App\Http\Controllers\RiderController;
@@ -9,6 +10,29 @@ use App\Http\Controllers\GigsController;
use App\Http\Controllers\NewsController;
use App\Http\Controllers\ContactsController;
use App\Http\Controllers\MapController;
use App\Http\Controllers\PlacesController;
Route::get('/welcome', function () {
return view('welcome');
});
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
Route::middleware('auth')
->group(function () {
Route::get('/places', [PlacesController::class, 'index'])->name('places.index');
Route::patch('/places', [PlacesController::class, 'update'])->name('places.update');
Route::post('/places', [PlacesController::class, 'create'])->name('places.create');
Route::delete('/places', [PlacesController::class, 'delete'])->name('places.delete');
});
Route::get('/', [MainController::class, 'index']);
Route::get('/rider', [RiderController::class, 'index']);
@@ -22,3 +46,4 @@ Route::get('/contacts', [ContactsController::class, 'index']);
Route::get('/map/index/id/{id}', [ MapController::class, 'index' ]);
Route::get('/api/getplace/id/{id}', [ MapController::class, 'getPlace' ]);
require __DIR__.'/auth.php';