app/Console/Commands/ParseMovie.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $this->line("Parsing the movie...");
        try {
            $imdbParser = new ImdbParser($this->argument('titleId'));
            $movie = $imdbParser->parse();
            $this->info("{$movie->title} parsed!");
        } catch (Exception $exception) {
            $this->error('Something went wrong, ' . $exception->getMessage());
        }
    }
public function handle ( ) { $ this -> line ( " Parsing the movie... " ) ; try { $ imdbParser = new ImdbParser ( $ this -> argument ( 'titleId' ) ) ; $ movie = $ imdbParser -> parse ( ) ; $ this -> info ( " { $ movie -> title }  parsed! " ) ; } catch ( Exception $ exception ) { $ this -> error ( 'Something went wrong, ' . $ exception -> getMessage ( ) ) ; } }
Execute the console command.
Execute the console command .