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