0.3.18 2023-02-01 14:19 UTC

README

Package adds users, basic auth, users CRUD.

Installation

1. Require package in your composer.json:

composer require studiocreativateam/auth

2. Add the service provider to your app/config/app.php:

    'providers' => [
        ...       
        \Sofa\Revisionable\Laravel\ServiceProvider::class,
    ],

3. Run below command to overwrite config/auth.php settings. To use User model from auth package

php artisan vendor:publish --provider="SCTeam\Auth\SCTeamServiceProvider" --tag="config-auth" --force

4. Run revisions migration:

php artisan migrate

5. Compile views:

npm run dev

6. (Optional) run seeds:

php artisan db:seed --class "SCTeam\Auth\Database\Seeders\PermissionsAndRolesSeeder"
php artisan db:seed --class "SCTeam\Auth\Database\Seeders\UsersSeeder"

Features

The lib allows

  • create
  • read
  • update
  • delete

Publishing

You can publish file by using command

php artisan vendor:publish --provider="SCTeam\Auth\SCTeamServiceProvider" --tag="{{tag1|tag2}}"

Available tags:

  • migrations
  • breadcrumbs
  • views
  • config