* Clear Live, Draft and Homepage indicators.
* Direct Edit page, Edit content and View page actions.
* Page editor divided into:
* Page details
* SEO and URL
* Publishing
* Automatic, unique URL slugs.
* Publish and expiry scheduling.
* Page templates: Default, Landing and Full Width.
* Homepage replacement handled automatically.
* Current homepage protected from accidental deletion.
* Page duplication includes its complete content structure.
* Content composer now works from the actual page record and page ID.
* Clearer section-based terminology for editors.
* Reusable content remains available as an advanced content library rather than dominating the workflow.
The package contains the eight complete changed files, preserving their project paths. It is not a patch collection.
18 lines
958 B
PHP
18 lines
958 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Pages\Http\Controllers\PageController;
|
|
use Modules\Pages\Http\Controllers\PublicPageController;
|
|
|
|
Route::middleware(['auth', 'verified'])->prefix('administration/pages')->name('administration.pages.')->group(function (): void {
|
|
Route::get('/', [PageController::class, 'index'])->name('index');
|
|
Route::get('/create', [PageController::class, 'create'])->name('create');
|
|
Route::post('/', [PageController::class, 'store'])->name('store');
|
|
Route::get('/{page}/edit', [PageController::class, 'edit'])->name('edit');
|
|
Route::match(['put', 'patch'], '/{page}', [PageController::class, 'update'])->name('update');
|
|
Route::post('/{page}/duplicate', [PageController::class, 'duplicate'])->name('duplicate');
|
|
Route::delete('/{page}', [PageController::class, 'destroy'])->name('destroy');
|
|
});
|
|
|
|
Route::get('/pages/{slug}', [PublicPageController::class, 'show'])->name('pages.public.show');
|