Add methods to various page controllers for handling index, store, and show actions

This commit is contained in:
2025-07-28 12:29:30 +05:00
parent 69dd14e06c
commit 2bf0c8f20d
31 changed files with 420 additions and 8 deletions

View File

@@ -2,7 +2,17 @@
namespace App\Http\Controllers;
use App\Models\News;
class NewsPageController extends Controller
{
//
public function index()
{
return view('web.pages.news.index');
}
public function show(News $news)
{
return view('web.pages.news.show', compact('news'));
}
}