/**
  * Handle the command.
  */
 public function handle(Asset $asset, Container $container, Application $application)
 {
     $asset->addPath('public', public_path());
     $asset->addPath('node', base_path('node_modules'));
     $asset->addPath('asset', $application->getAssetsPath());
     $asset->addPath('storage', $application->getStoragePath());
     $asset->addPath('download', $application->getAssetsPath('assets/downloads'));
     $asset->addPath('streams', $container->make('streams.path') . '/resources');
     $asset->addPath('bower', $container->make('path.base') . '/bin/bower_components');
 }
 /**
  * Handle the command.
  */
 public function handle(Image $image, Container $container, Application $application)
 {
     $image->addPath('public', base_path('public'));
     $image->addPath('node', base_path('node_modules'));
     $image->addPath('asset', $application->getAssetsPath());
     $image->addPath('streams', $container->make('streams.path') . '/resources');
     $image->addPath('bower', $container->make('path.base') . '/bin/bower_components');
 }
 /**
  * Handle the command.
  *
  * @param Filesystem  $files
  * @param Application $application
  */
 public function handle(Filesystem $files, Application $application)
 {
     $paths = ['storage', $application->getStoragePath(), 'public/assets', $application->getAssetsPath()];
     foreach ($paths as $path) {
         if ($files->exists(base_path($path)) && !$files->isWritable(base_path($path))) {
             die('chmod -R 777 ' . base_path($path));
         }
     }
 }
Example #4
0
 /**
  * Execute the console command.
  *
  * @param Filesystem  $files
  * @param Application $application
  */
 public function fire(Filesystem $files, Application $application)
 {
     $files->deleteDirectory($directory = $application->getAssetsPath('assets'), true);
     $this->info($directory . ' has been emptied!');
 }