Skip to content

Commit

Permalink
Updating RouteServiceProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Dec 21, 2016
1 parent 8488693 commit ef73e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function map(Router $router)
*/
private function mapPublicRoutes(Router $router)
{
$configs = $this->config()->get('arcanesoft.auth.authentication');
$configs = $this->config()->get('arcanesoft.auth.authentication', []);
$attributes = Arr::get($configs, 'routes.global', [
'prefix' => 'auth',
'as' => 'auth::',
Expand Down Expand Up @@ -76,14 +76,14 @@ private function mapPublicRoutes(Router $router)
*/
private function mapAdminRoutes(Router $router)
{
$namespace = 'Arcanesoft\\Auth\\Http\\Controllers\\Admin';
$namespace = 'Arcanesoft\\Auth\\Http\\Controllers\\Admin';

$router->group($this->getAdminAttributes('auth.', $namespace), function (Router $router) {
Routes\Admin\ProfileRoutes::register($router);
});

$attributes = $this->getAdminAttributes(
'auth.', $namespace, config('arcanesoft.auth.route.prefix', 'authorization')
'auth.', $namespace, $this->config()->get('arcanesoft.auth.route.prefix', 'authorization')
);

$router->group($attributes, function (Router $router) {
Expand Down

0 comments on commit ef73e27

Please sign in to comment.