2024-04-08 01:14:31 +02:00
|
|
|
# BAG Laravel Helper
|
|
|
|
|
2024-04-19 19:03:17 +02:00
|
|
|
Ce package Laravel fournit des commandes pour générer du code via BAG par Bluesquare.
|
2024-04-08 01:14:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-04-19 19:03:17 +02:00
|
|
|
Mettre à jour les sources de `composer.json` avec :
|
2024-04-08 01:14:31 +02:00
|
|
|
|
2024-04-19 19:03:17 +02:00
|
|
|
```shell
|
|
|
|
composer config repositories.bag vcs https://git.bluesquare.io/bag/laravel-helper.git -n
|
2024-04-08 01:14:31 +02:00
|
|
|
```
|
|
|
|
|
2024-04-19 19:03:17 +02:00
|
|
|
Puis installer le package :
|
2024-04-08 01:14:31 +02:00
|
|
|
|
2024-04-19 19:03:17 +02:00
|
|
|
```shell
|
|
|
|
composer require bag/laravel-helper
|
2024-04-08 01:14:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-04-19 19:03:17 +02:00
|
|
|
Pour installer BAG :
|
|
|
|
|
|
|
|
```shell
|
|
|
|
php artisan bag:install
|
|
|
|
```
|
|
|
|
|
|
|
|
Pour générer un CRUD en créant/partant d'un model :
|
|
|
|
|
|
|
|
```shell
|
|
|
|
php artisan bag:crud
|
2024-04-08 01:14:31 +02:00
|
|
|
```
|
2024-04-19 19:03:17 +02:00
|
|
|
|
|
|
|
```shell
|
|
|
|
sail artisan bag:crud
|
|
|
|
```
|
|
|
|
|
|
|
|
Pour générer des migrations automatiquement :
|
|
|
|
|
|
|
|
```shell
|
2024-04-08 01:14:31 +02:00
|
|
|
php artisan bag:migrations
|
|
|
|
```
|
2024-04-19 19:03:17 +02:00
|
|
|
|
|
|
|
```shell
|
|
|
|
sail artisan bag:migrations
|
|
|
|
```
|