title: How to write artisan command to search for specific routes name in Laravel
body: <p>I'm writing command for Laravel to search for a specific route pattern.</p>
  
  <p>I created command with argument {route} which execute bash command and echo the result.</p>
  
  <pre><code>protected $signature = 'routes:find {route}';
  
    public function handle()
      {
          echo  exec('php artisan route:list | grep '.$this-&gt;argument('route'));
      }
  </code></pre>
  
  <p>the problem is this command output the routes in one line and does not offer any formatting like default <code>route:list</code> command.</p>