Add Blog functionality: Created BlogController with index and show methods, added blog views, and integrated localization for meta tags. Updated routes to include blog paths.
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\PageController;
|
||||
use App\Http\Controllers\BlogController;
|
||||
|
||||
// Home -> admin'de işaretli anasayfayı (veya 'home' slug'ını) göster
|
||||
Route::get('/', [PageController::class, 'index'])->name('home');
|
||||
Route::get('/{slug}', [PageController::class, 'show'])->name('page.show');
|
||||
|
||||
// Blog
|
||||
Route::get('/blog', [BlogController::class, 'index'])->name('blog.index');
|
||||
Route::get('/blog/{slug}', [BlogController::class, 'show'])->name('blog.show');
|
||||
|
||||
Reference in New Issue
Block a user