app/Console/Kernel.php
/**
     * Register the commands for the application.
     *
     * @return void
     */
Register the commands for the application.
@return void
Register the commands for the application . @return void
protected function commands()
    {
        $this->load(__DIR__ . '/Commands');
        $dirs = array_filter(glob(base_path('routes') . DIRECTORY_SEPARATOR . '*'), 'is_dir');
        $fileName = 'console.php';
        foreach ($dirs as $dir) {
            if (file_exists($dir . DIRECTORY_SEPARATOR . $fileName)) {
                require $dir . DIRECTORY_SEPARATOR . $fileName;
            }
        }
    }
protected function commands ( ) { $ this -> load ( __DIR__ . '/Commands' ) ; $ dirs = array_filter ( glob ( base_path ( 'routes' ) . DIRECTORY_SEPARATOR . '*' ) , 'is_dir' ) ; $ fileName = 'console.php' ; foreach ( $ dirs as $ dir ) { if ( file_exists ( $ dir . DIRECTORY_SEPARATOR . $ fileName ) ) { require $ dir . DIRECTORY_SEPARATOR . $ fileName ; } } }
Register the commands for the application.
Register the commands for the application .