Can I create a new class that inherits from User in Laravel 5.2?

前端 未结 2 1940
醉梦人生
醉梦人生 2021-02-08 13:44

I am pretty new to laravel (using 5.2 which is the latest version to date), therefore I have the following dilemma: I know that Laravel comes with a User class righ

2条回答
  •  走了就别回头了
    2021-02-08 14:07

    I think the best way to work with this concept is with roles and keeping the User Class intact. See https://github.com/spatie/laravel-permission for details.

提交回复
热议问题