Skip to content

Duplicate invocation of install command in Setup documentation #162

Open
@ghost

Description

Steps 5 and 7 of the Setup section of the docs tell the user to run the same command. Is this intentional?

  1. Then run the install command: php artisan authentication:install
    Note: you need to setup your database configuration before running the command, check out: configuring laravel database
    Now you can find various configuration files under config/ folder.

  2. Now open the file app/Http/Kernel.php and add the following lines to your $routeMiddleware array:
    'admin_logged' => \LaravelAcl\Http\Middleware\AdminLogged::class,
    'logged' => \LaravelAcl\Http\Middleware\Logged::class,
    'can_see' => \LaravelAcl\Http\Middleware\CanSee::class,
    'has_perm' => \LaravelAcl\Http\Middleware\HasPerm::class,

  3. Now you need to install the application, to do that run the command: php artisan authentication:install.

If so, then perhaps step 7 could say, "run the install command again", to make clear to the reader that the repetition is not a mistake; and should ideally also explain the rationale behind running the same command twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions