https://github.com/anandpilania/laravel-flutter-getx
Scaffold Flutter project from Laravel :)
https://github.com/anandpilania/laravel-flutter-getx
flutter flutter-devtools getx laravel laravel-flutter scaffold
Last synced: 6 months ago
JSON representation
Scaffold Flutter project from Laravel :)
- Host: GitHub
- URL: https://github.com/anandpilania/laravel-flutter-getx
- Owner: AnandPilania
- Created: 2021-05-11T20:18:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T08:25:59.000Z (over 2 years ago)
- Last Synced: 2025-03-24T06:03:06.216Z (7 months ago)
- Topics: flutter, flutter-devtools, getx, laravel, laravel-flutter, scaffold
- Language: PHP
- Homepage:
- Size: 47.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [DEV] laravel-flutter-getx
Scaffold Flutter project from [Laravel](https://laravel.com) :) with [GetX](https://pub.dev/packages/get) to accomplish Laravel structure.[](https://hits.seeyoufarm.com)
## What it'll do:
1. `Create` Flutter project via `shell_exec`
2. Structure it like Laravel
3. Scaffold## Structure
```
- lib
- app
- bindings // DI
- controllers // Business Logic
- exceptions
- models
- providers // API communications
- services // Global/App services
- config // App config
- mocks // Mocking data in 'dev' env
-resources
- lang
- views
- widgets
- main.dart
- routes.dart // Route management
```#### [WINDOWS ONLY: till now] IF YOU WANT TO CREATE NEW FLUTTER APP WITH THIS STRUCTURE:
1: Clone the repo,
2: Open `cmd` & change the working dir to `bin` & run,
```
.\win-structure.bat APP_NAME
```
This will first run `flutter create` command & structure your new app afterthat.## How to use
1. Install
```
composer require anandpilania/laravel-flutter-getx
```2. Publish the `config`
```
php artisan vendor:publish --tag=laravel-flutter-getx
```3. Configure the `flutter apps` path `config\laravel-flutter-getx.php`
4. Create Flutter Project
```
php artisan flutter:create project_name
```## Other commands
- `flutter:make:binding` => w/o `controller` &| `provider`
- `flutter:make:controller` => w/o `provider`
- `flutter:make:exception` => w/o message
- `flutter:make:lang`
- `flutter:make:mock` => w/o `model`
- `flutter:make:model` => w/o `mock`
- `flutter:make:provider` => w/o sample
- `flutter:make:service`
- `flutter:make:view`