fix : update breadcrumb
, flightShow , sidebar
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Account;
|
||||
class WishlistController
|
||||
{
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
if (!function_exists('getUserFullName')) {
|
||||
function getUserFullName(?\App\Models\User $user = null): string
|
||||
{
|
||||
if (!$user) {
|
||||
$user = auth()->user();
|
||||
}
|
||||
return $user->first_name . ' ' . $user->last_name;
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -27,7 +27,10 @@
|
||||
"App\\": "app/",
|
||||
"Database\\Factories\\": "database/factories/",
|
||||
"Database\\Seeders\\": "database/seeders/"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"app/helpers/helpers.php"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
|
||||
+32
-10
@@ -1,26 +1,48 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Account\BookingController;
|
||||
use App\Http\Controllers\Account\EditProfileController;
|
||||
use App\Http\Controllers\Account\ProfileController;
|
||||
use App\Http\Controllers\Account\WishlistController;
|
||||
use App\Http\Controllers\CommentController;
|
||||
use App\Http\Controllers\FlightController;
|
||||
use App\Http\Controllers\IndexController;
|
||||
use App\Http\Controllers\TourController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', [IndexController::class,'index'] )->name('index');
|
||||
Route::get('/', [IndexController::class, 'index'])->name('index');
|
||||
|
||||
Route::prefix('flights')->name('flights.')->controller(FlightController::class)->group(function () {
|
||||
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('{flight}', 'show')->name('show');
|
||||
});
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('{flight}', 'show')->name('show');
|
||||
});
|
||||
|
||||
Route::prefix('tours')->name('tours.')->controller(TourController::class)->group(function () {
|
||||
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('{tour}', 'show')->name('show');
|
||||
});
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('{tour}', 'show')->name('show');
|
||||
});
|
||||
Route::controller(CommentController::class)->group(function () {
|
||||
Route::post('flights/{flight}/comments', 'storeFlight')->name('flights.comments');
|
||||
Route::post('tours/{tour}/comments', 'storeTour')->name('tours.comments');
|
||||
});
|
||||
|
||||
Route::post('flights/{flight}/comments', 'storeFlight')->name('flights.comments');
|
||||
Route::post('tours/{tour}/comments', 'storeTour')->name('tours.comments');
|
||||
|
||||
});
|
||||
|
||||
Route::prefix('account')->name('account.')->middleware('auth')->group(function () {
|
||||
|
||||
Route::get('profile', [ProfileController::class, 'index'])->name('profile');
|
||||
|
||||
Route::get('booking', [BookingController::class, 'index'])->name('booking');
|
||||
|
||||
Route::get('wishlist', [WishlistController::class, 'index'])->name('wishlist');
|
||||
|
||||
Route::prefix('edit-profile')->name('edit-profile.')->controller(EditProfileController::class)->group(function () {
|
||||
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::post('/', 'post')->name('post');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user