/** * Publish the assets for a given package name. * * @param string $package * @return void */ protected function publishAssets($package) { if (!is_null($path = $this->getPath())) { $this->assets->publish($package, $path); } else { $this->assets->publishPackage($package); } $this->output->writeln('<info>Assets published for package:</info> ' . $package); }
/** * Execute the console command. * * @return void */ public function fire() { $package = $this->input->getArgument('package'); if (!is_null($path = $this->getPath())) { $this->config->publish($package, $path); } else { $this->config->publishPackage($package); } $this->output->writeln('<info>Configuration published for package:</info> ' . $package); }
/** * Execute the console command. * * @return void */ public function fire() { $package = $this->getPackage(); if (!is_null($path = $this->getPath())) { $this->assets->publish($package, $path); } else { $this->assets->publishPackage($package); } $this->output->writeln('<info>Assets published for package:</info> ' . $package); }
/** * Execute the console command. * * @return void */ public function fire() { $package = 'barryvdh/laravel-elfinder'; if (!is_null($path = $this->getPath())) { $this->assets->publish($package, $path); $this->info('Assets published for package: ' . $package); } else { $this->error('Could not find path for: ' . $package); } }
/** * Execute the console command. * * @return void */ public function fire() { $package = 'ahmadazimi/laravel-media-manager'; if (!is_null($path = $this->getPath())) { $this->assets->publish($package, $path); $this->info('Assets published for package: ' . $package); } else { $this->error('Could not find path for: ' . $package); } }
/** * Execute the console command. * * @return void */ public function fire() { $package = 'maximebf/php-debugbar'; if (!is_null($path = $this->getDebugBarPath())) { $this->assets->publish($package, $path); $this->info('Assets published for package: ' . $package); } else { $this->error('Could not find path for: ' . $package); } $this->assets->publish('barryvdh/laravel-debugbar', $this->getPackagePublicPath()); $this->info('Assets published for package: barryvdh/laravel-debugbar'); }
/** * Register the asset publisher service and command. * * @return void */ protected function registerAssetPublisher() { $this->registerAssetPublishCommand(); $this->app->bindShared('asset.publisher', function ($app) { $publicPath = $app['path.public']; // The asset "publisher" is responsible for moving package's assets into the // web accessible public directory of an application so they can actually // be served to the browser. Otherwise, they would be locked in vendor. $publisher = new AssetPublisher($app['files'], $publicPath); $publisher->setPackagePath($app['path.base'] . '/vendor'); return $publisher; }); }
/** * Execute the console command. * * @return void */ public function fire() { $package = $this->input->getArgument('package'); $this->assets->publishPackage($package); $this->output->writeln('<info>Assets published for package:</info> ' . $package); }