1 | <?php namespace Modules\Page\Http\Controllers\Admin; |
||
9 | class PageController extends AdminBaseController |
||
10 | { |
||
11 | /** |
||
12 | * @var PageRepository |
||
13 | */ |
||
14 | private $page; |
||
15 | |||
16 | public function __construct(PageRepository $page) |
||
23 | |||
24 | public function index() |
||
30 | |||
31 | /** |
||
32 | * Show the form for creating a new resource. |
||
33 | * |
||
34 | * @return Response |
||
35 | */ |
||
36 | public function create() |
||
40 | |||
41 | /** |
||
42 | * Store a newly created resource in storage. |
||
43 | * |
||
44 | * @param CreatePageRequest $request |
||
45 | * @return Response |
||
46 | */ |
||
47 | public function store(CreatePageRequest $request) |
||
55 | |||
56 | /** |
||
57 | * Show the form for editing the specified resource. |
||
58 | * |
||
59 | * @param Page $page |
||
60 | * @return Response |
||
61 | */ |
||
62 | public function edit(Page $page) |
||
69 | |||
70 | /** |
||
71 | * Update the specified resource in storage. |
||
72 | * |
||
73 | * @param Page $page |
||
74 | * @param UpdatePageRequest $request |
||
75 | * @return Response |
||
76 | */ |
||
77 | public function update(Page $page, UpdatePageRequest $request) |
||
85 | |||
86 | /** |
||
87 | * Remove the specified resource from storage. |
||
88 | * |
||
89 | * @param Page $page |
||
90 | * @return Response |
||
91 | */ |
||
92 | public function destroy(Page $page) |
||
100 | } |
||
101 |