@@ 51-58 (lines=8) @@ | ||
48 | * @param Request $request |
|
49 | * @return Response |
|
50 | */ |
|
51 | public function store(Request $request) |
|
52 | { |
|
53 | $this->tag->create($request->all()); |
|
54 | ||
55 | flash()->success(trans('core::core.messages.resource created', ['name' => trans('blog::tag.title.tag')])); |
|
56 | ||
57 | return redirect()->route('admin.blog.tag.index'); |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * Show the form for editing the specified resource. |
|
@@ 78-85 (lines=8) @@ | ||
75 | * @param Request $request |
|
76 | * @return Response |
|
77 | */ |
|
78 | public function update(Tag $tag, Request $request) |
|
79 | { |
|
80 | $this->tag->update($tag, $request->all()); |
|
81 | ||
82 | flash()->success(trans('core::core.messages.resource updated', ['name' => trans('blog::tag.title.tag')])); |
|
83 | ||
84 | return redirect()->route('admin.blog.tag.index'); |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * Remove the specified resource from storage. |
|
@@ 93-100 (lines=8) @@ | ||
90 | * @param Tag $tag |
|
91 | * @return Response |
|
92 | */ |
|
93 | public function destroy(Tag $tag) |
|
94 | { |
|
95 | $this->tag->destroy($tag); |
|
96 | ||
97 | flash()->success(trans('core::core.messages.resource deleted', ['name' => trans('blog::tag.title.tag')])); |
|
98 | ||
99 | return redirect()->route('admin.blog.tag.index'); |
|
100 | } |
|
101 | } |
|
102 |