1 | <?php namespace Modules\Page\Http\Controllers\Admin; |
||
10 | class PageController extends AdminBaseController |
||
11 | { |
||
12 | /** |
||
13 | * @var PageRepository |
||
14 | */ |
||
15 | private $page; |
||
16 | |||
17 | public function __construct(PageRepository $page) |
||
24 | |||
25 | public function index() |
||
31 | |||
32 | /** |
||
33 | * Show the form for creating a new resource. |
||
34 | * |
||
35 | * @return Response |
||
36 | */ |
||
37 | public function create() |
||
43 | |||
44 | /** |
||
45 | * Store a newly created resource in storage. |
||
46 | * |
||
47 | * @param CreatePageRequest $request |
||
48 | * @return Response |
||
49 | */ |
||
50 | public function store(CreatePageRequest $request) |
||
58 | |||
59 | /** |
||
60 | * Show the form for editing the specified resource. |
||
61 | * |
||
62 | * @param Page $page |
||
63 | * @return Response |
||
64 | */ |
||
65 | public function edit(Page $page) |
||
71 | |||
72 | /** |
||
73 | * Update the specified resource in storage. |
||
74 | * |
||
75 | * @param Page $page |
||
76 | * @param UpdatePageRequest $request |
||
77 | * @return Response |
||
78 | */ |
||
79 | public function update(Page $page, UpdatePageRequest $request) |
||
91 | |||
92 | /** |
||
93 | * Remove the specified resource from storage. |
||
94 | * |
||
95 | * @param Page $page |
||
96 | * @return Response |
||
97 | */ |
||
98 | public function destroy(Page $page) |
||
108 | } |
||
109 |