I'm trying to send a notification from a laravel 8 app." When I hit the URL I get the error. syntax error, unexpected ')' In the route file :
Route::get('/twitter', function (){
    Notification::route(TwitterChannel::class,'')->notify(new TestNotification());
});
In notification file
public function via($notifiable)  {
    return [TwitterChannel::class];
}
public function toTwitter($notifiable)
{
    return new TwitterStatusUpdate('Laravel notifications are awesome!');
}
In composer.json file
"require": {
    "php": "^7.3",
    "fideloper/proxy": "^4.2",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0.1",
    "laravel-notification-channels/twitter": "^5.0",
    "laravel/framework": "^8.0",
    "laravel/tinker": "^2.0"
},
The error page screenshot is : The error page screenshot
 
     
    