Skip to content

Commit

Permalink
Updating the service provider and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Nov 24, 2015
1 parent 6cbd5cc commit 7a62836
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
File renamed without changes.
9 changes: 7 additions & 2 deletions src/FoundationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,30 @@ public function provides()
*/
private function registerPublishes()
{
$basePath = $this->getBasePath();

// Config
$this->publishes([
$this->getConfigFile() => config_path($this->vendor . DS . "{$this->package}.php")
]);

// Views
$viewsPath = $this->getBasePath() . '/resources/views';
$viewsPath = "$basePath/resources/views";
$this->loadViewsFrom($viewsPath, 'foundation');
$this->publishes([
$viewsPath => base_path('resources/views/vendor/foundation'),
], 'views');

// Translations
$translationsPath = $this->getBasePath() . '/resources/lang';
$translationsPath = "$basePath/resources/lang";
$this->loadTranslationsFrom($translationsPath, 'foundation');
$this->publishes([
$translationsPath => base_path('resources/lang/vendor/foundation'),
], 'lang');

// Assets
$this->publishes([
"$basePath/resources/assets/dist" => public_path('vendor/foundation'),
], 'lang');
}
}

0 comments on commit 7a62836

Please sign in to comment.