Skip to content

Commit 24aaf17

Browse files
author
Sandip Patel
committed
Internationalization Support
1 parent 42659ab commit 24aaf17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ServiceProvider.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111
namespace PCB\Laravel;
1212

13+
use PCBLaravel;
1314
use Illuminate\Support\Facades\Route;
1415
use Illuminate\Foundation\Support\Providers\RouteServiceProvider;
1516

@@ -42,7 +43,9 @@ public function boot()
4243

4344
if( \File::exists($plugin_route) )
4445
{
45-
Route::namespace($plugin_namespace)->group($plugin_path. 'routes.php');
46+
Route::prefix(PCBLaravel::setPrefix())
47+
->namespace($plugin_namespace)
48+
->group($plugin_path. 'routes.php');
4649
}
4750
}
4851
}

0 commit comments

Comments
 (0)