I ran into another issue here where I was getting an error, but nothing was giving me feedback on the Flutter app side. I ended up going to my Laravel app and looked at the logs. You have to change your CategoryController to just store the Category with a logged in user. Here is what I did temporarily.
Once we log in our user in the tutorial, I can go back to the other way I believe.
M
marko_mo
✓ Link copied!
What I've done is creating token by authenticating through Postman and then adding it to global variable so it can be used before we get to the Register/Login through the app.
class ApiService {
ApiService();
String token = "your------toke";
final String baseURL = "http://your-base-url:8000/api/";
I ran into another issue here where I was getting an error, but nothing was giving me feedback on the Flutter app side. I ended up going to my Laravel app and looked at the logs. You have to change your CategoryController to just store the Category with a logged in user. Here is what I did temporarily.
Once we log in our user in the tutorial, I can go back to the other way I believe.
What I've done is creating token by authenticating through Postman and then adding it to global variable so it can be used before we get to the Register/Login through the app.