0

I want to create a new Laravel project with Laravel Passport.

I was looking for the controller and the APIs for auth (login/ logout/ register/ forgot password)

if I wanted to use normal auth I would go with Laravel Breeeze but I just need apis.

does any body know any package?

Justine2399
  • 81
  • 1
  • 1
  • 6
  • 1
    Laravel Breeze already includes what you need so you don't need any other package. – Can Celik Mar 03 '22 at 09:24
  • @CanCelik but laravel breeze will provide some blade files and controllers without api. so I should create some new controllers for api and replace it. am I right? – Justine2399 Mar 03 '22 at 09:30
  • If you don't need any views, then you can use Laravel Sanctum – Can Celik Mar 03 '22 at 15:34
  • @CanCelik but laravel Sanctum works with livewire... I need just some normal controllers...not livewire – Justine2399 Mar 04 '22 at 07:38
  • Laravel Sanctum doesn't use or require livewire. Please check the documentation here => https://laravel.com/docs/9.x/sanctum – Can Celik Mar 04 '22 at 11:19
  • @CanCelik yes I know, by default sanctum is installed on a new laravel project. I'm looking for the codes that we should write in the controllers for the route /login /register /forgot-password – Justine2399 Mar 04 '22 at 11:28
  • You said sanctum works with livewiere which it doesn't. You said you need API auth but looking for login/register/forgot-password routes. I think you're little bit confused on what you need. Documentation URL I provided in my previous comment has enough codes to get you started for the API authentication. – Can Celik Mar 04 '22 at 18:06

0 Answers0