Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
99d9c82e
Commit
99d9c82e
authored
May 30, 2018
by
huy.dang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix route:cache issue
parent
a075e380
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
RoutingServiceProvider.php
Modules/Core/Providers/RoutingServiceProvider.php
+7
-1
No files found.
Modules/Core/Providers/RoutingServiceProvider.php
View file @
99d9c82e
...
@@ -4,6 +4,7 @@ namespace Modules\Core\Providers;
...
@@ -4,6 +4,7 @@ namespace Modules\Core\Providers;
use
Illuminate\Foundation\Support\Providers\RouteServiceProvider
as
ServiceProvider
;
use
Illuminate\Foundation\Support\Providers\RouteServiceProvider
as
ServiceProvider
;
use
Illuminate\Routing\Router
;
use
Illuminate\Routing\Router
;
use
Mcamara\LaravelLocalization\Facades\LaravelLocalization
;
abstract
class
RoutingServiceProvider
extends
ServiceProvider
abstract
class
RoutingServiceProvider
extends
ServiceProvider
{
{
...
@@ -51,7 +52,12 @@ abstract class RoutingServiceProvider extends ServiceProvider
...
@@ -51,7 +52,12 @@ abstract class RoutingServiceProvider extends ServiceProvider
$this
->
loadApiRoutes
(
$router
);
$this
->
loadApiRoutes
(
$router
);
});
});
$prefixes
=
array_merge
(
json_decode
(
setting
(
'core::locales'
)),
[
''
]);
if
(
app
(
'asgard.isInstalled'
))
{
$prefixes
=
array_merge
(
json_decode
(
setting
(
'core::locales'
)),
[
''
]);
}
else
{
$prefixes
=
[
LaravelLocalization
::
setLocale
()];
}
foreach
(
$prefixes
as
$prefix
)
{
foreach
(
$prefixes
as
$prefix
)
{
$router
->
group
([
$router
->
group
([
'namespace'
=>
$this
->
namespace
,
'namespace'
=>
$this
->
namespace
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment