// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
syaaraa.kodsolutions.net
/
routes
[ PARENT ]
EDIT :: web.php
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\Auth\AuthController; use App\Http\Controllers\Auth\ProfileController; use App\Http\Controllers\Auth\FavouritesController; use App\Http\Controllers\Auth\ResetPasswordController; use App\Http\Controllers\Auth\PropertiesController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider and all of them will | be assigned to the "web" middleware group. Make something great! | */ Route::get('/', function () { return redirect(app()->getLocale()); }); Route::group([ 'namespace' => 'App\\Http\\Controllers\\Website', 'prefix' => '{locale}', 'where' => ['locale' => '[a-zA-Z]{2}'], 'as' => 'website.', 'middleware' => 'setlocale', ], function () { Route::get('/', 'HomeController@index')->name('home'); Route::get('about-us', 'HomeController@showAboutUs')->name('about.show'); Route::get('clients', 'HomeController@showClients')->name('clients.index'); Route::get('services', 'HomeController@showServices')->name('services.index'); Route::get('cities', 'HomeController@showCities')->name('cities.index'); Route::get('faqs', 'HomeController@showFaqs')->name('faqs.index'); Route::get('terms-conditions', 'HomeController@showTerms')->name('terms.index'); Route::get('privacy-policy', 'HomeController@showPrivacy')->name('privacy.index'); Route::get('articles', 'ArticlesController@index')->name('articles.index'); Route::get('articles/{slug}', 'ArticlesController@show')->name('articles.show'); Route::get('properties', 'PropertiesController@index')->name('properties.index'); Route::get('properties-map', 'PropertiesController@map')->name('properties.map'); Route::get('properties/{code}/{slug}', 'PropertiesController@show')->name('properties.show'); Route::get('contact-us', 'HomeController@showContactUs')->name('contact-us.show'); Route::post('contact-us', 'HomeController@contactUs')->name('contact-us.store'); Route::post('finance/{property}', 'HomeController@financeRequest')->name('finance.store'); Route::post('subscribe', 'HomeController@subscribe')->name('subscribe.store'); Route::group(['middleware' => ['guest']], function () { Route::get('login', [AuthController::class, 'login']) ->name('login'); Route::post('login', [AuthController::class, 'postLogin']) ->name('login.post'); Route::get('register', [AuthController::class, 'register']) ->name('register.post'); Route::post('register', [AuthController::class, 'postRegister']) ->name('register'); Route::get('/forgot-password', [ResetPasswordController::class, 'show'])->name('forgot-password.show'); Route::post('/forgot-password', [ResetPasswordController::class, 'sendCode'])->name('forgot-password.post'); Route::post('/reset-password', [ResetPasswordController::class, 'resetPassword'])->name('forgot-password.reset'); }); Route::group(['middleware' => 'auth', 'as' => 'auth.'], function () { Route::get('profile', [ProfileController::class, 'index']) ->name('profile.index'); Route::put('profile', [ProfileController::class, 'update']) ->name('profile.update'); Route::get('update-password', [ProfileController::class, 'editPassword']) ->name('profile.password.edit'); Route::post('logout', [AuthController::class, 'logout']) ->name('logout'); Route::get('profile/home', [ProfileController::class, 'home']) ->name('profile.home'); Route::get('favourites', [FavouritesController::class, 'favourites']) ->name('favourites.index'); Route::post('favourites', [FavouritesController::class, 'favourites']) ->name('favourites.store'); Route::group(['middleware' => 'owner', 'as' => 'owner.'], function () { Route::get('units', [PropertiesController::class, 'index']) ->name('units.index'); Route::get('units/{slug}', [PropertiesController::class, 'show']) ->name('units.show'); Route::get('units/{slug}/edit', [PropertiesController::class, 'edit']) ->name('units.edit'); Route::put('units/{slug}', [PropertiesController::class, 'update']) ->name('units.update'); }); }); }); Route::get('/migrate', function () { \Artisan::call('optimize:clear'); \Artisan::call('migrate', [ '--force' => true ]); dd('migrated!'); });
SAVE
CANCEL