I
I
Ismail-12019-08-05 19:31:02
Laravel
Ismail-1, 2019-08-05 19:31:02

How to make registration and authorization laravel - ajax?

Good evening.
I am writing a SPA on laravel + vue.
How can I do registration and authorization through ajax.
Can I use authorization from the laravel box and how can I send ajax requests to these routes? Or do I need to write new api controllers - registration, login, password recovery, and write new api routes for them. Can you clarify this point?
And one more thing, I will not use access_token for access from vue, but I will use Gate.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
palansky, 2019-08-12
@Ismail-1

jwt

A
Andrey Suha, 2019-08-05
@andreysuha

laravel.su/docs/5.4/passport entered the dock for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question