1
|
|
|
<?php namespace Arcanesoft\Seo\Http\Routes\Admin; |
2
|
|
|
|
3
|
|
|
use Arcanedev\Support\Routing\RouteRegistrar; |
4
|
|
|
use Arcanesoft\Seo\Models\Footer; |
5
|
|
|
|
6
|
|
|
/** |
7
|
|
|
* Class FootersRoutes |
8
|
|
|
* |
9
|
|
|
* @package Arcanesoft\Seo\Http\Routes\Admin |
10
|
|
|
* @author ARCANEDEV <[email protected]> |
11
|
|
|
*/ |
12
|
|
|
class FootersRoutes extends RouteRegistrar |
13
|
|
|
{ |
14
|
|
|
/* ----------------------------------------------------------------- |
15
|
|
|
| Main Methods |
16
|
|
|
| ----------------------------------------------------------------- |
17
|
|
|
*/ |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Register the bindings. |
21
|
|
|
*/ |
22
|
16 |
|
public static function bindings() |
23
|
|
|
{ |
24
|
16 |
|
$registrar = new static; |
25
|
|
|
|
26
|
16 |
|
$registrar->bind('seo_footer', function ($id) { |
27
|
|
|
return Footer::query()->findOrFail($id); |
28
|
16 |
|
}); |
29
|
16 |
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* Define the routes for the application. |
33
|
|
|
*/ |
34
|
|
|
public function map() |
35
|
|
|
{ |
36
|
16 |
|
$this->prefix('footers')->name('footers.')->group(function () { |
37
|
16 |
|
$this->get('/', 'FootersController@index') |
38
|
16 |
|
->name('index'); // admin::seo.footers.index |
39
|
|
|
|
40
|
16 |
|
$this->get('create', 'FootersController@create') |
41
|
16 |
|
->name('create'); // admin::seo.footers.create |
42
|
|
|
|
43
|
16 |
|
$this->post('store', 'FootersController@store') |
44
|
16 |
|
->name('store'); // admin::seo.footers.store |
45
|
|
|
|
46
|
16 |
|
$this->prefix('{seo_footer}')->group(function () { |
47
|
16 |
|
$this->get('/', 'FootersController@show') |
48
|
16 |
|
->name('show'); // admin::seo.footers.show |
49
|
|
|
|
50
|
16 |
|
$this->get('edit', 'FootersController@edit') |
51
|
16 |
|
->name('edit'); // admin::seo.footers.edit |
52
|
|
|
|
53
|
16 |
|
$this->put('update', 'FootersController@update') |
54
|
16 |
|
->name('update'); // admin::seo.footers.update |
55
|
|
|
|
56
|
16 |
|
$this->delete('delete', 'FootersController@delete') |
57
|
16 |
|
->middleware('ajax') |
58
|
16 |
|
->name('delete'); // admin::seo.footers.delete |
59
|
16 |
|
}); |
60
|
|
|
}); |
61
|
|
|
} |
62
|
|
|
} |
63
|
|
|
|