1 | <?php namespace Modules\Blog\Http\Controllers\Admin; |
||
12 | class PostController extends AdminBaseController |
||
13 | { |
||
14 | /** |
||
15 | * @var PostRepository |
||
16 | */ |
||
17 | private $post; |
||
18 | /** |
||
19 | * @var CategoryRepository |
||
20 | */ |
||
21 | private $category; |
||
22 | /** |
||
23 | * @var FileRepository |
||
24 | */ |
||
25 | private $file; |
||
26 | /** |
||
27 | * @var Status |
||
28 | */ |
||
29 | private $status; |
||
30 | |||
31 | public function __construct( |
||
44 | |||
45 | /** |
||
46 | * Display a listing of the resource. |
||
47 | * |
||
48 | * @return \Illuminate\View\View |
||
49 | */ |
||
50 | public function index() |
||
56 | |||
57 | /** |
||
58 | * Show the form for creating a new resource. |
||
59 | * |
||
60 | * @return \Illuminate\View\View |
||
61 | */ |
||
62 | public function create() |
||
69 | |||
70 | /** |
||
71 | * Store a newly created resource in storage. |
||
72 | * |
||
73 | * @param CreatePostRequest $request |
||
74 | * @return \Illuminate\Http\RedirectResponse |
||
75 | */ |
||
76 | public function store(CreatePostRequest $request) |
||
84 | |||
85 | /** |
||
86 | * Show the form for editing the specified resource. |
||
87 | * |
||
88 | * @param Post $post |
||
89 | * @return \Illuminate\View\View |
||
90 | */ |
||
91 | public function edit(Post $post) |
||
99 | |||
100 | /** |
||
101 | * Update the specified resource in storage. |
||
102 | * |
||
103 | * @param Post $post |
||
104 | * @param UpdatePostRequest $request |
||
105 | * @return \Illuminate\Http\RedirectResponse |
||
106 | */ |
||
107 | public function update(Post $post, UpdatePostRequest $request) |
||
115 | |||
116 | /** |
||
117 | * Remove the specified resource from storage. |
||
118 | * |
||
119 | * @param Post $post |
||
120 | * @return \Illuminate\Http\RedirectResponse |
||
121 | */ |
||
122 | public function destroy(Post $post) |
||
132 | } |
||
133 |