Laravel Form Builder is a package that allows developers to create dynamic APIs without writing manual queries in the backend. With this package, the frontend can retrieve data from the database without requiring a new API for each request.
✅ CRUD operations for Data Sources
✅ Dynamic queries based on tables, columns, and parameters
✅ Supports custom queries (only SELECT
queries allowed)
✅ Caching for improved query performance
✅ API to get list of tables and list of columns from the database
✅ Easy installation as a Laravel Package
composer require elgibor-solution/laravel-form-builder
php artisan migrate
To publish migration files to your Laravel project:
php artisan vendor:publish --provider="ESolution\DataSources\Providers\DataSourcesServiceProvider" --tag=migrations
GET /api/data-sources
POST /api/data-sources
Content-Type: application/json
Body:
{
"name": "Users List",
"table_name": "users",
"use_custom_query": false,
"columns": ["id", "name", "email"]
}
GET /api/data-sources/{id}/query
GET /api/data-sources/tables
GET /api/data-sources/tables/{table}/columns
- Laravel 8+
- MySQL / PostgreSQL
- Redis Cache
If you’d like to contribute to this project, feel free to fork the repository and submit a pull request! 🚀
✌ Happy Coding!