Enhance Template Import and Preview Functionality: Updated the ImportHtmlTemplates command to improve asset path handling by moving files to storage and updating HTML asset paths. Added a preview action in SectionTemplatesTable for better template management, along with a new Blade view for rendering previews. Adjusted route for template preview to accept any request method for flexibility.
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ Route::get('/blog/{slug}', [BlogController::class, 'show'])->name('blog.show');
|
||||
Route::post('/blog/{slug}/comment', [BlogController::class, 'storeComment'])->name('blog.comment.store');
|
||||
|
||||
// Template Preview (admin panel için)
|
||||
Route::post('/admin/template-preview', [TemplatePreviewController::class, 'preview'])
|
||||
Route::any('/admin/template-preview', [TemplatePreviewController::class, 'preview'])
|
||||
->middleware(['auth'])
|
||||
->name('template.preview');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user