Skip to content

Commit

Permalink
added a public tag for assets folders
Browse files Browse the repository at this point in the history
  • Loading branch information
indpurvesh committed May 31, 2018
1 parent b4d49eb commit 1b1d912
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,21 @@

class Module extends ServiceProvider
{


/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
///protected $defer = true;

/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->publishFiles();

$this->publishFiles();
}

/**
Expand All @@ -39,14 +37,10 @@ public function boot()
*/
public function register()
{

}



public function publishFiles() {
$this->publishes([__DIR__.'/../assets' => public_path()], 'public');
public function publishFiles()
{
$this->publishes([__DIR__ . '/../assets' => storage_path('app/public')], 'public');
}
}


0 comments on commit 1b1d912

Please sign in to comment.