Hello everyone, I've created a flutter app with an API written in Laravel. I've used BLoC for state management in flutter and sanctum as a token-based authentication provider. I hope it will be a good example for those who want to try Laravel and flutter integration.
The original Laravel app is from this amazing series at Laracasts. But, I've added many new features and functionalities.
Laravel backend API - https://github.com/tunnandaaung/tweety
Flutter App - https://github.com/tunnandaaung/tweety-mobile
Thanks.
Update (25.11.2020)
Now, I've also added real-time chat using Pusher, Laravel Websockets, and Laravel echo both in web and mobile app. Thanks again!
Top comments (16)
I am into laravel, then started learning flutter and now while trying to make them work together I found this post. Thanks for sharing this, it looks awesome .
If you are interested in this, you can also look at my article about Flutter templates. I made it easier for you and compared the free and paid Flutter templates. I'm sure you'll find something useful there, too. - dev.to/pablonax/free-vs-paid-flutt...
You just read my mind. I started learning flutter this week. Thanks for this example. Hope you don't mind silly questions.
I tried to install into my laragon, but failed. Opened an Issue.
Thanks for sharing!
Looks awesome
Thanks 😄
Awesome!
Hello, I'm really interested in this project.
Will you teach me kindly?
I am still learning as well. But I will help you as much as I can 😄.
I will appreciate
I have been doing Laravel but I have not touched flutter yet...
Hi there, I wish to know how the token were generated and where it is stored on the database.
Hello, tokens are generated using Laravel Sanctum and stored on the table called personal_access_tokens. For mobile app, tokens are stored using SharedPreferences.
Do you include any Laravel Echo in your project?
Not at the moment. But I am planning to add it soon.