|
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
|
16 |
|
*/ |
|
22
|
|
|
public static function bindings() |
|
23
|
|
|
{ |
|
24
|
|
|
$registrar = new static; |
|
25
|
16 |
|
|
|
26
|
|
|
$registrar->bind('seo_footer', function ($id) { |
|
27
|
|
|
return Footer::findOrFail($id); |
|
28
|
16 |
|
}); |
|
29
|
16 |
|
} |
|
30
|
|
|
|
|
31
|
16 |
|
/** |
|
32
|
16 |
|
* Define the routes for the application. |
|
33
|
|
|
*/ |
|
34
|
16 |
|
public function map() |
|
35
|
16 |
|
{ |
|
36
|
|
|
$this->prefix('footers')->name('footers.')->group(function () { |
|
37
|
16 |
|
$this->get('/', 'FootersController@index') |
|
38
|
16 |
|
->name('index'); // admin::seo.footers.index |
|
39
|
16 |
|
|
|
40
|
|
|
$this->get('create', 'FootersController@create') |
|
41
|
16 |
|
->name('create'); // admin::seo.footers.create |
|
42
|
16 |
|
|
|
43
|
|
|
$this->post('store', 'FootersController@store') |
|
44
|
16 |
|
->name('store'); // admin::seo.footers.store |
|
45
|
16 |
|
|
|
46
|
|
|
$this->prefix('{seo_footer}')->group(function () { |
|
47
|
16 |
|
$this->get('/', 'FootersController@show') |
|
48
|
16 |
|
->name('show'); // admin::seo.footers.show |
|
49
|
16 |
|
|
|
50
|
16 |
|
$this->get('edit', 'FootersController@edit') |
|
51
|
16 |
|
->name('edit'); // admin::seo.footers.edit |
|
52
|
16 |
|
|
|
53
|
|
|
$this->put('update', 'FootersController@update') |
|
54
|
|
|
->name('update'); // admin::seo.footers.update |
|
55
|
|
|
|
|
56
|
|
|
$this->delete('delete', 'FootersController@delete') |
|
57
|
|
|
->middleware('ajax') |
|
58
|
|
|
->name('delete'); // admin::seo.footers.delete |
|
59
|
|
|
}); |
|
60
|
|
|
}); |
|
61
|
|
|
} |
|
62
|
|
|
} |
|
63
|
|
|
|