zaichaopan / laravel-react-spa Goto Github PK
View Code? Open in Web Editor NEWA Laravel-React SPA starter project template.
A Laravel-React SPA starter project template.
Hey there! I'm a bit new to Laravel and sculpting REST APIs (so thanks for bearing with me on this issue) but for some reason, when making POST requests to the /api/register
endpoint in Postman โ I'm getting an empty response and nothing is getting created in the database?
The front-end works great and as expected out of the box (which is awesome I should add!), but I'm so curious why Postman isn't allowing requests and records to be saved. FWIW making POST requests to /api/signin
works fine but man, I'm really struggling to understand why the Register API endpoint isn't working as expected in Postman. Cheers!
Whenever you access auth routes directly (type /profile/1 into the url bar) I always get redirected first to the login page and then to the home page.
Seems to be related to the async nature of the authenticated variable in auth-route.js.
When I alert(authenticated) it initially returns false which triggers the <Redirect to={{ pathname: '/login' on line 33
Is there any way of awaiting the authenticated check prior to the return statement on line 23 of auth-route.js?
I can't get my head around how to do this.
you must say about the database configuration
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.