BarateGites's avatar

First laravel and react js application. Need suggestions

As the title says its my first time with laravel and a front-end framework, in this case I choose react because I have a little bit more experience then others.

I have 3 main questions:

What Auth provider? In my tests I used sanctum and worked perfectly, but a lot of tutorials uses passport. Note: maybe in The future I need to consume the api with a mobile app.

For the moment I think I will start building the front-end side "inside" laravel, I mean in the same project. How hard/easy will be to "eject" it and use two separate tier? And, focusing on this, answer to question 1 can still be valid?

Auth page: should be blade or react? If react should I use localStorage to store the login status?

Thanks!

0 likes
2 replies
Sergiu17's avatar

What Auth provider?

Sanctum is fine

maybe in The future I need to consume the api with a mobile app.

you can do this with Sanctum too

How hard/easy will be to "eject" it and use two separate tier?

Separate applications from the beginning, you will save time later

Auth page: should be blade or react?

React

BarateGites's avatar

As the title says its my first time with laravel and a front-end framework, in this case I choose react because I have a little bit more experience then others.

I have 3 main questions:

What Auth provider? In my tests I used sanctum and worked perfectly, https://getappvalley.com/ but a lot of tutorials uses passport. Note: maybe in The future I need to consume the api with a mobile app.

For the moment I think I will start building the front-end side "inside" laravel, I mean in the same project. How hard/easy will be to "eject" it and use two separate tier? And, focusing on this, answer to question 1 can still be valid?

Auth page: should be blade or react? If react should I use localStorage to store the login status?

Thanks! issue got solved!!

Please or to participate in this conversation.