Add template preview functionality: Introduced TemplatePreviewController and TemplatePreviewService for rendering dynamic previews of header, footer, and section templates. Updated form schemas to include preview components and enhanced real-time content updates. Added configuration for template assets and integrated preview functionality into the admin panel.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\PageController;
|
||||
use App\Http\Controllers\BlogController;
|
||||
use App\Http\Controllers\TemplatePreviewController;
|
||||
use App\Models\Page;
|
||||
|
||||
// Debug Route - Veritabanı kontrolü
|
||||
@@ -60,5 +61,10 @@ Route::get('/', [PageController::class, 'index'])->name('homepage');
|
||||
Route::get('/blog', [BlogController::class, 'index'])->name('blog.index');
|
||||
Route::get('/blog/{slug}', [BlogController::class, 'show'])->name('blog.show');
|
||||
|
||||
// Template Preview (admin panel için)
|
||||
Route::post('/admin/template-preview', [TemplatePreviewController::class, 'preview'])
|
||||
->middleware(['auth'])
|
||||
->name('template.preview');
|
||||
|
||||
// Pages (en sonda olmalı - catch-all)
|
||||
Route::get('/{slug}', [PageController::class, 'show'])->name('page.show');
|
||||
|
||||
Reference in New Issue
Block a user