An open API service indexing awesome lists of open source software.

https://github.com/cooltriks/bootstrap-laravel-crud-generator

Laravel 10 bootstrap crud generator
https://github.com/cooltriks/bootstrap-laravel-crud-generator

bootstrap-crud-generator bootstrap4 bootstrap5 crud-generator laravel laravel-bootstrap laravel-bootstrap-app laravel-bootstrap-crud-generator laravel-crud laravel-crud-generator laravel10x

Last synced: 5 days ago
JSON representation

Laravel 10 bootstrap crud generator

Awesome Lists containing this project

README

        

![Laravel Crud Generator](https://banners.beyondco.de/Laravel%20CRUD.png?theme=dark&packageManager=composer+require&packageName=coolhax%2Fbootstrap-laravel-crud-generator&pattern=architect&style=style_1&description=Laravel+CRUD+Generator&md=1&showWatermark=0&fontSize=100px&images=gift)
)

![Packagist](https://img.shields.io/badge/Packagist-v1.3.2-green.svg?style=flat-square)
![Licence](https://img.shields.io/badge/Licence-MIT-green.svg?style=flat-square)
![StyleCI](https://img.shields.io/badge/StyleCI-pass-green.svg?style=flat-square)

This Laravel Generator package provides and generate Controller, Model (with eloquent relations) and Views in **Bootstrap** for your development of your applications with single command.

This packege based on - (https://github.com/awais-vteams/laravel-crud-generator)

**What Is New**
- **Relationship** with select in form and auto Relationship data pass in view
- **Select dropDown in form**
- **Search Filter added**
- **$serchable Property in Model**
- Bootstrap new Design **col-md-6**
- New Feature **Auto Route**

- Will create **Model** with Eloquent relations
- Will create **Controller** with all resources
- Will create **views** in Bootstrap

## Requirements
Laravel >= 9.0
PHP >= 8.1
Bootstrap >= 5.0.0

## Start Up
```
composer create-project laravel/laravel project-name
```
```
cd project-name
```
```
composer require laravel/ui
```
```
php artisan ui bootstrap --auth
```
```
npm install
```
```
npm run build
```
## Installation
1 - Install
```
composer require coolhax/bootstrap-laravel-crud-generator --dev
```
2- Publish the default package's config
```
php artisan vendor:publish --tag=crud
```

## Usage
```
php artisan make:crud {table_name}

php artisan make:crud banks
```

Add a route in `web.php`

- Now auto Route Feature **Not Needed**
```
Route::resource('banks', App\Http\Controlles\BankController:class);
```
Route name in plural slug case.

#### Options
- Custom Route
```
php artisan make:crud {table_name} --route={route_name}
```

## Example

*Model*
![Model](https://i.imgur.com/zTSoYvJ.png)

*Controller*
![Controller](https://i.imgur.com/G1ytmcL.png)

*Listing*
![Listing](https://i.imgur.com/UH5XGuw.png)

*Form*
![Form](https://i.imgur.com/poRiZRO.png)

## Author

Rohit Kumar // [Email Me](mailto:[email protected])