sethsandaru / eloquent-docs

Generate phpDoc for your Eloquent Models with ease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no hasAttributeMutator

netinsideout-larkit opened this issue · comments

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()

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!