title: syntax error, unexpected ')' in laravel 8. \vendor\laravel\framework\src\Illuminate\Bus\BusServiceProvider.php:51
body: <p><strong>I'm trying to send a notification from a laravel 8 app.&quot;</strong>
  When I hit the URL I get the error. syntax error, unexpected ')'
  In the route file :</p>
  <pre><code>Route::get('/twitter', function (){
      Notification::route(TwitterChannel::class,'')-&gt;notify(new TestNotification());
  });
  </code></pre>
  <p>In notification file</p>
  <pre><code>public function via($notifiable)  {
      return [TwitterChannel::class];
  }
  public function toTwitter($notifiable)
  {
      return new TwitterStatusUpdate('Laravel notifications are awesome!');
  }
  </code></pre>
  <p>In composer.json file</p>
  <pre><code>&quot;require&quot;: {
      &quot;php&quot;: &quot;^7.3&quot;,
      &quot;fideloper/proxy&quot;: &quot;^4.2&quot;,
      &quot;fruitcake/laravel-cors&quot;: &quot;^2.0&quot;,
      &quot;guzzlehttp/guzzle&quot;: &quot;^7.0.1&quot;,
      &quot;laravel-notification-channels/twitter&quot;: &quot;^5.0&quot;,
      &quot;laravel/framework&quot;: &quot;^8.0&quot;,
      &quot;laravel/tinker&quot;: &quot;^2.0&quot;
  },
  </code></pre>
  <p>The error page screenshot is :
  <a href="https://i.stack.imgur.com/9sIIt.png" rel="nofollow noreferrer">The error page screenshot</a></p>