app/Console/Commands/cleancache.php
/**
     * Execute the console command.
     *
     * @return int
     */
Execute the console command.
@return int
Execute the console command . @return int
public function handle()
    {
        exec("composer dumpautoload", $composerautoload);
        exec("php artisan config:cache", $configcache);
        exec("php artisan route:cache", $routecache);
        exec("php artisan view:cache", $viewcache);
        $this->comment(implode(PHP_EOL, $composerautoload));
        $this->comment(implode(PHP_EOL, $configcache));
        $this->comment(implode(PHP_EOL, $routecache));
        $this->comment(implode(PHP_EOL, $viewcache));
        return 0;
    }
public function handle ( ) { exec ( " composer dumpautoload " , $ composerautoload ) ; exec ( " php artisan config:cache " , $ configcache ) ; exec ( " php artisan route:cache " , $ routecache ) ; exec ( " php artisan view:cache " , $ viewcache ) ; $ this -> comment ( implode ( PHP_EOL , $ composerautoload ) ) ; $ this -> comment ( implode ( PHP_EOL , $ configcache ) ) ; $ this -> comment ( implode ( PHP_EOL , $ routecache ) ) ; $ this -> comment ( implode ( PHP_EOL , $ viewcache ) ) ; return 0 ; }
Execute the console command.
Execute the console command .
/**
         * *Write a command which will run 'composer dumpautoload' bash command
         */ // execute command // print output from command