- Add status checker + admin secure packages + upgrade enum + add sentry + upgrade to sitemap generator + bump to CRMV2 - Set customer role enum and user role enum - Update customer migration to set roles - phpcbf - faker local to fr - update lang - composer update - bump laravel ui - Redo all user crud - npm bump - Create admin command - rearrange views - redo all auth system - redo customer pro bo
68 lines
3.3 KiB
PHP
68 lines
3.3 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Fo\AboutUsController;
|
|
use App\Http\Controllers\Fo\ContactUsController;
|
|
use App\Http\Controllers\Fo\CSRController;
|
|
use App\Http\Controllers\Fo\HomeController;
|
|
use App\Http\Controllers\Fo\LegalNoticeController;
|
|
use App\Http\Controllers\Fo\NewsController;
|
|
use App\Http\Controllers\Fo\OurTradeController;
|
|
use App\Http\Controllers\Fo\PrivacyPolicyController;
|
|
use App\Http\Controllers\Fo\SearchController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
// * FO login
|
|
Route::namespace('\App\Http\Controllers\Fo')->middleware(['throttle:credentials'])->group(function () {
|
|
Auth::routes([
|
|
'login' => true,
|
|
'logout' => true,
|
|
'register' => true,
|
|
// For resetting passwords.
|
|
'reset' => true,
|
|
// For additional password confirmations.
|
|
'confirm' => true,
|
|
// For email verification.
|
|
'verify' => true,
|
|
]);
|
|
});
|
|
|
|
Route::name('fo.')->group(function () {
|
|
|
|
// * Individual Intra
|
|
Route::middleware(['auth:frontend', 'verified'])->group(function () {
|
|
Route::name('customer.')->prefix('espace-client')->group(function () {
|
|
// * for now we have no page for private clients
|
|
Route::get('/', [HomeController::class, 'index'])->name('dashboard');
|
|
});
|
|
});
|
|
|
|
// * Redo THIS
|
|
// Route::get('/login', [LoginController::class, 'showLoginForm'])->name('login');
|
|
// Route::post('/login', [LoginController::class, 'authenticate'])->name('post-login');
|
|
// Route::post('/logout', [LoginController::class, 'logout'])->name('logout');
|
|
// Route::post('/register', [RegisterController::class, 'create'])->name('save-register');
|
|
// Route::get('/register', [RegisterController::class, 'showRegistrationForm'])->name('register');
|
|
// Route::get('/confirmation-email/{verifyToken}', [LoginController::class, 'confirmEmail'])->name('confirm-email');
|
|
// Route::get('/mot-de-passe-oublie', [LoginController::class, 'forgotPassword'])->name('forgot-password');
|
|
// Route::get('/mot-de-passe-oublie/reset/{token}', [LoginController::class, 'forgotPasswordReset'])->name('forgot-password-reset');
|
|
// Route::put('/mail-mot-de-passe', [LoginController::class, 'mailPassword'])->name('mail-password');
|
|
// Route::put('/change-mot-de-passe', [LoginController::class, 'changePassword'])->name('change-password');
|
|
Route::get('/', [HomeController::class, 'index'])->name('home');
|
|
Route::redirect('/home', '/');
|
|
Route::get('/qui-sommes-nous', [AboutUsController::class, 'index'])->name('aboutus');
|
|
Route::get('/nos-metiers', [OurTradeController::class, 'index'])->name('ourtrade');
|
|
Route::get('/rse', [CSRController::class, 'index'])->name('csr');
|
|
Route::get('/nous-contacter', [ContactUsController::class, 'index'])->name('contactus');
|
|
Route::get('/mentions-legales', [LegalNoticeController::class, 'index'])->name('legalnotice');
|
|
Route::get('/politique-de-confidentialite', [PrivacyPolicyController::class, 'index'])->name('privacypolicy');
|
|
|
|
// * Search
|
|
Route::post('/recherche', [SearchController::class, 'index'])->name('searchresults');
|
|
|
|
// * News
|
|
Route::prefix('/actualites')->name('news.')->group(function () {
|
|
Route::get('/', [NewsController::class, 'index'])->name('index');
|
|
Route::get('/{slug}', [NewsController::class, 'show'])->name('show');
|
|
});
|
|
});
|