Download the PHP package nhrrob/crudgenerator without Composer
On this page you can find all versions of the php package nhrrob/crudgenerator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nhrrob/crudgenerator
More information about nhrrob/crudgenerator
Files in nhrrob/crudgenerator
Package crudgenerator
Short Description This package provides an artisan command to generate a basic crud
License MIT
Informations about the package crudgenerator
NHRROB Crud Generator Package
This package provides an artisan command to generate a basic crud
composer install command:
Crud Generator Commands
-
install:
-
If you want to keep backend files under Admin folder
File Structure: Check below (Section => Bonus : Admin File Structure) -
Migration: Add title field and run migration
-
add field:
- run migration:
-
Note:
- This package creates resource route.
Example:
- Model title: Post
- Resource route: example.com/posts
- If you want to use Api, make sure Sanctum (or, Passport) is installed.
Link: https://github.com/nhrrob/laravelwiki
Loom Videos:
-
Laravel 8 project installation with auth:
https://www.loom.com/share/681f186c6f61490f8e2df97cfc86afdd - Laravel Crud using nhrrob/crudgenerator:
https://www.loom.com/share/b860fb8c3ad2406fbd8661f2946f5cd7
Modify Stubs:
- Publish vendor files
Remove Crud Generated Files:
-
Delete Crud
-
If you have generated crud under Admin folder:
- Manually delete migration file and remove route from web.php
Feel free to contact:
nazmulrobin.com | Twitter | Linkedin | Email
Bonus
Laravel 8 auth using laravel/ui:
Bonus : API
API Helpline:
https://github.com/nhrrob/laravelwiki
After refreshing database re create personal access token for passport
Bonus : Admin File Structure
-
When you add --admin in crud generator commands =>
It adds admin folder for views and Admin folder for controllers (including Api) - Sample File/Folder Structure:
V2.3.0
- Config file added
- Api versioning support added
- Api versions will be managed in dedicated version folder (e.x. app/Http/Controllers/Api/V1 and app/Http/Controllers/Api/V1/Admin)
- Now delete command will also delete migration file. You dont need to manually remove it.
- API AuthController will be added under versioning folder. (Probably - https://github.com/nhrrob/laravel-11-api-crud/tree/master/app/Http/Controllers/Api/V1/Admin has no auth under versioning. But I am adding auth under versioning for get started project. Also crud generator creates under versioning folder).