spatie / laravel-webhook-client

Receive webhooks in Laravel apps
https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps
MIT License
985 stars 146 forks source link

Attribute [webhook] does not exist. #173

Closed hamza-saqib closed 1 year ago

hamza-saqib commented 1 year ago

i have php 7.3 and laravel 7 installed. i have installed both client and server package of this. but while it installed successfully but after few days later when i did composer install than i got this even i'm getting this on clearing cache. i have instlled this client package with command composer require spatie/laravel-webhook-client:"*" because it was causing version dependency issue.

my route: Route::webhooks('echeck-webhook-receiving');

InvalidArgumentException 

  Attribute [webhook] does not exist.

  at vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:93
    89|      */
    90|     public function attribute($key, $value)
    91|     {
    92|         if (! in_array($key, $this->allowedAttributes)) {
  > 93|             throw new InvalidArgumentException("Attribute [{$key}] does not exist.");
    94|         }
    95| 
    96|         $this->attributes[Arr::get($this->aliases, $key, $key)] = $value;
    97| 

      +2 vendor frames 
  3   routes/web.php:172
      Illuminate\Support\Facades\Facade::__callStatic("webhook")