sethsandaru / eloquent-docs

Generate phpDoc for your Eloquent Models with ease
MIT License
42 stars 5 forks source link

no hasAttributeMutator #3

Closed netinsideout-larkit closed 1 year ago

netinsideout-larkit commented 2 years ago

There are no hasAttributeMutator in laravel 8.12

php artisan eloquent:phpdoc App\\Models\\User

   BadMethodCallException

  Call to undefined method App\Models\User::hasAttributeMutator()

  at vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:50
     46▕      * @throws \BadMethodCallException
     47▕      */
     48▕     protected static function throwBadMethodCallException($method)
     49▕     {
  ➜  50▕         throw new BadMethodCallException(sprintf(
     51▕             'Call to undefined method %s::%s()', static::class, $method
     52▕         ));
     53▕     }
     54▕ }

  • Bad Method Call: Did you mean App\Models\User::hasGetMutator() ?

      +21 vendor frames
  22  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
sethsandaru commented 1 year ago

Seems like this package is not supporting Laravel 8 🤔 hasAttributeMutator is only available for 9+

I suggest updating to Laravel 9 (more features and security updates).

I'll update the README again. Thanks for spotting this!