lopatin96/laravel-user-types

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel user types

Installs: 8 749

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lopatin96/laravel-user-types

1.0.6 2024-05-24 12:29 UTC

This package is auto-updated.

Last update: 2025-03-15 07:39:05 UTC


README

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"