Skip to content

Error when running commands due to package using deprecated Laravel helpers #145

Open
@ericc06

Description

@ericc06

Bug description
When running this command:
php artisan multiauth:make myguard
getting this error:
Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function Bitfumes\Multiauth\Console\Commands\str_plural()

Laravel Version
Laravel 6.20.9 (last LTS)

To Reproduce
Steps to reproduce the behavior:

  1. Install Laravel 6 (LTS):
    composer create-project --prefer-dist laravel/laravel myproject "6.*"
  2. Install multiauth:
    composer require bitfumes/laravel-multiauth
    --> Version 5.5.x-dev is installed.
  3. Launch
    php artisan multiauth:make myguard
  4. See error

Expected behavior
The multiauth package should work with Laravel 6.
I think multiauth package should be installed in "dev-master" version on Laravel 6 or, if not possible and version 5.5.x-dev is required, it should not use Laravel helpers removed from Laravel 6 (str_plural() not present in Laravel 6).

Desktop

  • OS: Windows 10
  • Browser : Chrome
  • Dev env: Laragon

Additional context
The multiauth package official documentation (https://bitfumes.github.io/laravel-multiauth/) is related to the dev-master branch and can't be used with Laravel 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions