PHPackages                             californiamountainsnake/simple-laravel-auth-system - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. californiamountainsnake/simple-laravel-auth-system

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

californiamountainsnake/simple-laravel-auth-system
==================================================

A simple realisation of authentication and authorization for Laravel

3.0.19(6y ago)01391MITPHPPHP ^7.2

Since Apr 19Pushed 6y agoCompare

[ Source](https://github.com/CaliforniaMountainSnake/simple-laravel-auth-system)[ Packagist](https://packagist.org/packages/californiamountainsnake/simple-laravel-auth-system)[ RSS](/packages/californiamountainsnake-simple-laravel-auth-system/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (7)Versions (38)Used By (1)

simple-laravel-auth-system
==========================

[](#simple-laravel-auth-system)

A simple realisation of authentication and authorization for Laravel

Install:
--------

[](#install)

### Require this package with Composer

[](#require-this-package-with-composer)

Install this package through [Composer](https://getcomposer.org/). Edit your project's `composer.json` file to require `californiamountainsnake/simple-laravel-auth-system`:

```
{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "php": "^7.2",
        "californiamountainsnake/simple-laravel-auth-system": "*"
    }
}
```

and run `composer update`

### or

[](#or)

run this command in your command line:

```
composer require californiamountainsnake/simple-laravel-auth-system
```

Usage:
------

[](#usage)

1. Extend Enum classes: (`AuthLangsEnum`, `AuthUserAccountTypeEnum`, `AuthUserRoleEnum`).
2. Extend the `AuthUserAvailableActions` class. You can add there any checks based on some user, like `(new UserAvailableActions($user))->isSomeActionAvailableForThisUser()`.
3. Extend the `AuthUserEntity` class. This your main user class. See .
4. Extend the `AuthUserRepository` class. This is the repository contains all user database queries in any from. See .
5. Extend the `AuthValidatorService` class contains the Laravel validation array for `api_token` request param. Like:

```
