1 | <?php namespace Arcanesoft\Seo\Http\Controllers\Admin; |
||
17 | class RedirectsController extends Controller |
||
18 | { |
||
19 | /* ----------------------------------------------------------------- |
||
20 | | Traits |
||
21 | | ----------------------------------------------------------------- |
||
22 | */ |
||
23 | |||
24 | use JsonResponses; |
||
25 | |||
26 | /* ----------------------------------------------------------------- |
||
27 | | Constructor |
||
28 | | ----------------------------------------------------------------- |
||
29 | */ |
||
30 | |||
31 | /** |
||
32 | * RedirectsController constructor. |
||
33 | */ |
||
34 | public function __construct() |
||
41 | |||
42 | /* ----------------------------------------------------------------- |
||
43 | | Main Methods |
||
44 | | ----------------------------------------------------------------- |
||
45 | */ |
||
46 | |||
47 | /** |
||
48 | * Get the index page. |
||
49 | * |
||
50 | * @return \Illuminate\View\View |
||
51 | */ |
||
52 | public function index() |
||
63 | |||
64 | /** |
||
65 | * Get the create form. |
||
66 | * |
||
67 | * @return \Illuminate\View\View |
||
68 | */ |
||
69 | public function create() |
||
80 | |||
81 | /** |
||
82 | * Store the new redirect. |
||
83 | * |
||
84 | * @param \Arcanesoft\Seo\Http\Requests\Admin\Redirects\CreateRedirectRequest $request |
||
85 | * |
||
86 | * @return \Illuminate\Http\RedirectResponse |
||
87 | */ |
||
88 | public function store(CreateRedirectRequest $request) |
||
100 | |||
101 | /** |
||
102 | * Show the redirect details page. |
||
103 | * |
||
104 | * @param \Arcanesoft\Seo\Models\Redirect $redirect |
||
105 | * |
||
106 | * @return \Illuminate\View\View |
||
107 | */ |
||
108 | public function show(Redirect $redirect) |
||
117 | |||
118 | /** |
||
119 | * Get the edit page. |
||
120 | * |
||
121 | * @param \Arcanesoft\Seo\Models\Redirect $redirect |
||
122 | * |
||
123 | * @return \Illuminate\View\View |
||
124 | */ |
||
125 | public function edit(Redirect $redirect) |
||
136 | |||
137 | /** |
||
138 | * Update the redirect. |
||
139 | * |
||
140 | * @param \Arcanesoft\Seo\Models\Redirect $redirect |
||
141 | * @param \Arcanesoft\Seo\Http\Requests\Admin\Redirects\UpdateRedirectRequest $request |
||
142 | * |
||
143 | * @return \Illuminate\Http\RedirectResponse |
||
144 | */ |
||
145 | public function update(Redirect $redirect, UpdateRedirectRequest $request) |
||
155 | |||
156 | /** |
||
157 | * Delete a redirect record. |
||
158 | * |
||
159 | * @param \Arcanesoft\Seo\Models\Redirect $redirect |
||
160 | * |
||
161 | * @return \Illuminate\Http\JsonResponse |
||
162 | */ |
||
163 | public function delete(Redirect $redirect) |
||
173 | |||
174 | /* ----------------------------------------------------------------- |
||
175 | | Other Methods |
||
176 | | ----------------------------------------------------------------- |
||
177 | */ |
||
178 | |||
179 | /** |
||
180 | * Notify with translation. |
||
181 | * |
||
182 | * @param string $action |
||
183 | * @param array $replace |
||
184 | * @param array $context |
||
185 | * |
||
186 | * @return string |
||
187 | */ |
||
188 | protected function transNotification($action, array $replace = [], array $context = []) |
||
198 | } |
||
199 |