benomas / crudvel
Laravel clases customization for cruds
Installs: 1 592
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 1
Open Issues: 0
- dev-master
- 5.5.0
- 5.0.0
- v02.50
- 01.8
- 1.1.22
- 1.0.15
- v0.5.x-dev
- v0.4.x-dev
- v0.4.9
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.x-dev
- v0.3.2
- v0.2.85
- v0.2.84
- v0.2.83
- v0.2.82
- v0.2.81
- v0.2.80
- v0.2.75
- v0.2.74
- v0.2.73
- v0.2.72
- v0.2.71
- v0.2.70
- v0.2.69
- v0.2.68
- v0.2.67
- v0.2.66
- v0.2.65
- v0.2.63
- v0.2.62
- v0.2.61
- v0.2.60
- v0.2.59
- v0.2.58
- v0.2.57
- v0.2.56
- v0.2.55
- v0.2.54
- v0.2.53
- v0.2.52
- v0.2.51
- v0.2.49
- v0.2.48
- 0.2.47
- v0.2.46
- v0.2.45
- v0.2.44
- v0.2.43
- v0.2.41
- v0.2.40
- v0.2.39
- v0.2.38
- v0.2.37
- v0.2.36
- v0.2.35
- v0.2.34
- v0.2.33
- v0.2.32
- v0.2.31
- v0.2.30
- v0.2.29
- v0.2.28
- v0.2.27
- v0.2.26
- v0.2.25
- v0.2.24
- v0.2.23
- v0.2.22
- v0.2.20
- v0.2.19
- v0.2.18
- v0.2.17
- v0.2.16
- v0.2.15
- v0.2.14
- v0.2.13
- v0.2.12
- v0.2.11
- v0.2.10
- 0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.80
- v0.1.79
- v0.1.78
- v0.1.77
- v0.1.76
- v0.1.75
- v0.1.74
- v0.1.73
- 0.1.71
- 0.1.70
- 0.1.69
- 0.1.68
- 0.1.67
- 0.1.66
- 0.1.65
- 0.1.64
- 0.1.63
- v0.1.62
- 0.1.61
- 0.1.60
- 0.1.59
- 0.1.58
- 0.1.57
- 0.1.56
- 0.1.55
- 0.1.54
- 0.1.53
- 0.1.52
- 0.1.51
- 0.1.50
- 0.1.49
- 0.1.48
- 0.1.47
- 0.1.46
- 0.1.45
- 0.1.44
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.39
- 0.1.38
- 0.1.37
- 0.1.36
- 0.1.35
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1.1
- 0.1.1
- 0.1
- dev-laravel-5.6-5.7
- dev-laravel-5.4-5.5
- dev-4code-crudvel
- dev-laravel5-version
This package is auto-updated.
Last update: 2025-03-29 00:33:36 UTC
README
Laravel clases customization
This package helps you to make and restfull api, implementing all the default laravel api endpoinds plus some aditionals. The main concept of this package is a resource.
A resource require:
-Lang file
-Migration file
-Model file
-ApiController file
-Request file
-Seed file (optional)
-Routing.
When you include this package as dependency in your laravel proyect, firts at all you will require to publish it, just run the next line in the terminal
php artisan vendor:publish --provider='Benomas\Crudvel\CrudvelServiceProvider'
After that you will get access to scaffolding commands
scaffold {modo} {classes} {entity} {entity_segments} {api_segments} {web_segments}
# mode
-create|delete
# classes (this param contain all the class types as 1 param, so you need to define it as class,class,class... )
-api_controller
-web_controller (unused for now)
-request
-model
-repository (unused for now)
-migration
# entity
name of the resource in StudlyCase, example CatState
#entity_segments
directory structure, if you want to group the resources by your own way, just define here how will be structuring.
for example, if you want to put de resource CatState inside catalogos folder, then you need to define entity segments as '\catalogs'
#api_segments
Same as entity_segments. but only apply for api controllers
#web_segments
Same as entity_segments. but only apply for web controllers
Example of calls
Examples
up
php artisan scaffold create api_controller,request,model,migration test "" "\Api" ""
down
php artisan scaffold delete api_controller,request,model,migration test "" "\Api" ""
This package is based in oop, For give you access to change de base logic, without touch core files. You will have a folder name crudvel/customs in the root of your proyect, here you can change de behavior of crudvel clases in a global way for your proyect.
After you create a resource with crudvel scaffolding, you require to complete the next steps in the order in the order that they are listed
-Create resources/lang/<lang>/crudvel/<resource(plural,slug)>
-Edit App/Models/<resource(singular,StudlyCase)>
-Edit App/Http/Requests/<resource(singular,StudlyCase)>Request
-Edit App/Http/Controllers/Api/<resource(singular,StudlyCase)>Controller
-Edit database/migrations/<datetime+_create+_<resource>_+table+_datetime(plural,snake_case)>
-Create(optional) database/seeds/<resource+table_seeder(singular,StudlyCase)>
-Edit routes/api *Add in the apiCrudvelResources call (plural,slug)