laravel-user-types maintained by lopatin96
Description
Laravel user types
Author
Last update
2024/05/24 14:29
(dev-master)
License
Downloads
8 749
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"