Looking to hire Laravel developers? Try LaraJobs

laravel-user-types maintained by lopatin96

Description
Laravel user types
Last update
2024/05/24 14:29 (dev-master)
License
Links
Downloads
8 749

Comments
comments powered by Disqus

Install

Trait and Casts

Add HasUserType trait and casts to User model.

use Atin\LaravelSocialAuth\Traits\HasUserType;

class User extends Authenticatable
{
    use HasUserType;
    
    protected $casts = [
        'type' => \Atin\LaravelUserTypes\Enums\UserType::class,
    ];

Run migrations:

php artisan migrate

Publishing

Migrations

php artisan vendor:publish --tag="laravel-user-types-migrations"