Done
This commit is contained in:
+1
-3
@@ -3,6 +3,4 @@
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
Schedule::command('feeds:fetch')->everyFifteenMinutes();
|
||||
|
||||
@@ -5,13 +5,6 @@ use App\Http\Controllers\Settings\SecurityController;
|
||||
use Illuminate\Auth\Middleware\RequirePassword;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware(['auth'])->group(function () {
|
||||
Route::redirect('settings', '/settings/profile');
|
||||
|
||||
Route::get('settings/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||
Route::patch('settings/profile', [ProfileController::class, 'update'])->name('profile.update');
|
||||
});
|
||||
|
||||
Route::middleware(['auth', 'verified'])->group(function () {
|
||||
Route::delete('settings/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
||||
|
||||
|
||||
+17
-1
@@ -1,8 +1,24 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\CategoryController;
|
||||
use App\Http\Controllers\FrontPageController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::inertia('/', 'Index')->name('home');
|
||||
// routes/web.php
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/', FrontPageController::class)->name('home');
|
||||
Route::get('/settings', [CategoryController::class, 'index'])->name('settings.index');
|
||||
|
||||
|
||||
Route::resource('settings/feeds', CategoryController::class)
|
||||
->parameters(['feeds' => 'category'])
|
||||
->only(['index', 'store', 'update', 'destroy'])
|
||||
->names('categories');
|
||||
|
||||
});
|
||||
|
||||
Route::inertia('/login', 'Auth/Login')->name('login');
|
||||
Route::inertia('/register', 'Auth/Register')->name('register');
|
||||
|
||||
require __DIR__.'/settings.php';
|
||||
|
||||
Reference in New Issue
Block a user