*/
public function boot()
{
- $resourcesDir = __DIR__ . '/../resources';
- $this->loadTranslationsFrom(realpath(__DIR__ . '/resources/lang'), self::NAMESPACE);
- foreach (glob(__DIR__ . '/routes/cubist/backpack/*.php') as $filename) {
+
+ $base = realpath(__DIR__ . "/..");
+ $resourcesDir = $base . '/resources';
+
+ $this->loadTranslationsFrom(realpath($resourcesDir . '/lang'), self::NAMESPACE);
+ foreach (glob($base . '/routes/cubist/backpack/*.php') as $filename) {
$this->loadRoutesFrom($filename);
}
$this->publishes([$resourcesDir . '/config/cubist.php' => config_path('cubist.php')], 'config');
- $this->loadViewsFrom(realpath(__DIR__ . '/resources/views'), self::NAMESPACE);
+ $this->loadViewsFrom(realpath($resourcesDir . '/views'), self::NAMESPACE);
Blade::directive('vendor_asset', function ($path) {
return vendor_asset($path);
*/
public function register()
{
- $resourcesDir = __DIR__ . '/resources';
+ $base = realpath(__DIR__ . "/..");
+ $resourcesDir = $base . '/resources';
+
$configs = ['app', 'cubist'];