Sharing Top Content from the Angular-sphere.

Building and testing Artisan Commands

  • class ConfigManager extends Command { protected $signature = ‘config:manage’; protected $description = ‘Command description’; public function __construct() { parent::__construct(); } public function handle() { // } }
  • if (is_null($file = $this->argument(‘file’))) { $file = $this->choice(‘Please select a file’, $configFiles); } // Otherwise, if a file was provided we’ll check if the file doesn’t // exist, and if so, we’ll show an error and exit.
  • ); } return $this->warn(“No file was created!”); } /** * The array of all available application config files.

Read the full article, click here.

@LearningLaravel: “Learn how to build Artisan Commands in Laravel

#laravel #php #angularjs #jquery #html #css”

One of the bestselling Laravel books! Learning Laravel 5 shows you a fastest way to learn developing web applications using Laravel 5 PHP framework

Building and testing Artisan Commands | Learning Laravel