You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I now receive this error on my local version after composer global update. Nothing changed in my code and everything worked properly before the composer update.
This is line 28:
Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}"));
This discussion was converted from issue #157 on October 07, 2022 15:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I now receive this error on my local version after composer global update. Nothing changed in my code and everything worked properly before the composer update.
This is line 28:
Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}"));
this is a laravel 6 project.
I get this error in artisan:
Symfony\Component\Debug\Exception\FatalThrowableError : syntax error
at /Users/.../Sites/ws/vendor/spatie/laravel-webhook-client/src/WebhookClientServiceProvider.php:28
24| DIR.'/../database/migrations/create_webhook_calls_table.php.stub' => database_path("migrations/{$timestamp}_create_webhook_calls_table.php"),
25| ], 'migrations');
26| }
27|
Exception trace:
1 Composer\Autoload\includeFile("/Users/..../Sites/ws/vendor/composer/../spatie/laravel-webhook-client/src/WebhookClientServiceProvider.php")
/Users/..../Sites/ws/vendor/composer/ClassLoader.php:322
2 Composer\Autoload\ClassLoader::loadClass("Spatie\WebhookClient\WebhookClientServiceProvider")
[internal]:0
Any clue as to how to fix this issue? Thank you. - Jon
Beta Was this translation helpful? Give feedback.
All reactions