iam new to laravel and for praciting iam trying to create a website like GoFundMe but simplier with laravel and Vue js. But iam very confused with Laravel's authentication systems, even though i have read most of the questions on here.
Which authentication system should i use? is it ok to use Sanctum for authentication and then spatie for user permissions?
CodePudding user response:
You have to have a clear concept on the topic authentication
& authorization
first. You may use Laravel Sanctum
powered by Laravel framework as well. Because it provide authentication support for SPAs (single page applications), mobile applications, and simple, token based APIs. You may also have a look to passport
later.
After passing your authentication, the topic authorization
comes. You may use Gate
. But as you are new to Laravel framework, then it seems to be a good choice to use laravel spatie
for managing your permissions. But keep in mind that, it use Gate
concept under the hood.