Skip to content

Commit 2d6d52f

Browse files
committed
Add README and format code with PSR-12 standrad
1 parent f8a1bcb commit 2d6d52f

7 files changed

+6222
-751
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ composer require alibori/laravel-api-resource-generator
1212

1313
## Usage
1414

15+
All you need to do is to run the following command:
16+
1517
``` bash
1618
php artisan alibori:api-resource <model-name>
1719
```
1820

21+
This command will generate a new resource for the given model name with the properties defined in the model.
22+
1923
## Publish config file
2024

25+
If you want to publish the config file to change the default namespace for the generated resources and the directory where the resources will be generated, you can run the following command:
26+
2127
``` bash
2228
php artisan vendor:publish --provider="Alibori\LaravelApiResourceGenerator\LaravelApiResourceGeneratorServiceProvider" --tag="config"
2329
```

composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@
3838
"illuminate/database": "^9.1"
3939
},
4040
"minimum-stability": "dev",
41-
"prefer-stable": true
41+
"prefer-stable": true,
42+
"require-dev": {
43+
"orchestra/testbench": "^7.22",
44+
"laravel/pint": "^1.6"
45+
}
4246
}

0 commit comments

Comments
 (0)