Add methods to various page controllers for handling index, store, and show actions
This commit is contained in:
@@ -2,7 +2,17 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Story;
|
||||
|
||||
class StoryPageController extends Controller
|
||||
{
|
||||
//
|
||||
public function index()
|
||||
{
|
||||
return view('web.pages.stories.index');
|
||||
}
|
||||
|
||||
public function show(Story $story)
|
||||
{
|
||||
return view('web.pages.stories.show', compact('story'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user