-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Create boilerplate for a resource | ||
```bash | ||
# Generate model, migration and factory | ||
docker exec nimbl-dev-php-container php artisan make:model Invoice -m -f | ||
# Generate Api Controller | ||
docker exec nimbl-dev-php-container php artisan make:controller InvoiceController --api | ||
# Generate Database Seeder | ||
docker exec nimbl-dev-php-container php artisan make:seeder InvoicesTableSeeder | ||
# Generate API Resource | ||
docker exec nimbl-dev-php-container php artisan make:resource InvoiceResource | ||
# Generate API ResourceCollection | ||
docker exec nimbl-dev-php-container php artisan make:resource InvoiceCollection | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters