|
1
|
|
|
<?php namespace Arcanesoft\Seo\Providers; |
|
2
|
|
|
|
|
3
|
|
|
use Arcanesoft\Core\Bases\RouteServiceProvider as ServiceProvider; |
|
4
|
|
|
use Arcanesoft\Seo\Http\Routes; |
|
5
|
|
|
|
|
6
|
|
|
/** |
|
7
|
|
|
* Class RouteServiceProvider |
|
8
|
|
|
* |
|
9
|
|
|
* @package Arcanesoft\Seo\Providers |
|
10
|
|
|
* @author ARCANEDEV <[email protected]> |
|
11
|
|
|
*/ |
|
12
|
|
|
class RouteServiceProvider extends ServiceProvider |
|
13
|
|
|
{ |
|
14
|
|
|
/* ----------------------------------------------------------------- |
|
15
|
|
|
| Properties |
|
16
|
|
|
| ----------------------------------------------------------------- |
|
17
|
|
|
*/ |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* The admin controller namespace for the application. |
|
21
|
|
|
* |
|
22
|
|
|
* @var string |
|
23
|
|
|
*/ |
|
24
|
|
|
protected $adminNamespace = 'Arcanesoft\\Seo\\Http\\Controllers\\Admin'; |
|
25
|
|
|
|
|
26
|
|
|
/* ----------------------------------------------------------------- |
|
27
|
|
|
| Main Methods |
|
28
|
|
|
| ----------------------------------------------------------------- |
|
29
|
|
|
*/ |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* Define the routes for the application. |
|
33
|
|
|
*/ |
|
34
|
|
|
public function map() |
|
35
|
|
|
{ |
|
36
|
16 |
|
$this->adminGroup(function () { |
|
37
|
16 |
|
$this->mapAdminRoutes(); |
|
38
|
16 |
|
}); |
|
39
|
|
|
|
|
40
|
16 |
|
$this->mapPublicRoutes(); |
|
41
|
16 |
|
} |
|
42
|
|
|
|
|
43
|
|
|
/* ----------------------------------------------------------------- |
|
44
|
|
|
| Other Methods |
|
45
|
|
|
| ----------------------------------------------------------------- |
|
46
|
|
|
*/ |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* Register the route bindings. |
|
50
|
|
|
*/ |
|
51
|
16 |
|
protected function registerRouteBindings() |
|
52
|
|
|
{ |
|
53
|
16 |
|
Routes\Admin\PagesRoutes::bindings(); |
|
54
|
16 |
|
Routes\Admin\FootersRoutes::bindings(); |
|
55
|
16 |
|
Routes\Admin\MetasRoutes::bindings(); |
|
56
|
16 |
|
Routes\Admin\RedirectsRoutes::bindings(); |
|
57
|
16 |
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Map the admin routes. |
|
61
|
|
|
*/ |
|
62
|
16 |
|
protected function mapAdminRoutes() |
|
63
|
|
|
{ |
|
64
|
16 |
|
$this->name('seo.') |
|
65
|
16 |
|
->prefix($this->config()->get('arcanesoft.seo.route.prefix', 'seo')) |
|
66
|
16 |
|
->group(function () { |
|
67
|
16 |
|
Routes\Admin\DashboardRoutes::register(); |
|
68
|
16 |
|
Routes\Admin\PagesRoutes::register(); |
|
69
|
16 |
|
Routes\Admin\FootersRoutes::register(); |
|
70
|
16 |
|
Routes\Admin\MetasRoutes::register(); |
|
71
|
16 |
|
Routes\Admin\RedirectsRoutes::register(); |
|
72
|
16 |
|
Routes\Admin\SpammersRoutes::register(); |
|
73
|
16 |
|
Routes\Admin\SettingsRoutes::register(); |
|
74
|
16 |
|
}); |
|
75
|
16 |
|
} |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* Map the public routes. |
|
79
|
|
|
*/ |
|
80
|
16 |
|
protected function mapPublicRoutes() |
|
81
|
|
|
{ |
|
82
|
16 |
|
Routes\Front\FootersRoutes::register(); |
|
83
|
16 |
|
} |
|
84
|
|
|
} |
|
85
|
|
|
|