Download the PHP package campelo/laravel-make-full without Composer
On this page you can find all versions of the php package campelo/laravel-make-full. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-make-full
Laravel Make Full
Generate complete CRUD structure from a single command: Model, Controller, Service, Repository, Resource, Requests, Policy, Migration, Factory, Seeder.
Features
- Single Command - Generate all files at once with
php artisan make:full - Field Definition - Define fields inline and auto-generate validations, migrations, factories
- Smart Validation - Generates proper validation rules based on field types
- Search Built-in - Service/Repository includes search with pagination
- Customizable - Publish stubs to customize generated code
Installation
Publish config (optional):
Quick Start
Generated Files
| File | Path | Description |
|---|---|---|
| Model | app/Models/Post.php |
Eloquent model with fillable, casts, relations |
| Controller | app/Http/Controllers/PostController.php |
API controller with CRUD methods |
| Service | app/Services/PostService.php |
Business logic with search/pagination |
| Repository | app/Repositories/PostRepository.php |
Data access layer |
| Resource | app/Http/Resources/PostResource.php |
API resource transformer |
| StoreRequest | app/Http/Requests/StorePostRequest.php |
Validation for create |
| UpdateRequest | app/Http/Requests/UpdatePostRequest.php |
Validation for update |
| Policy | app/Policies/PostPolicy.php |
Authorization policy |
| Migration | database/migrations/xxx_create_posts_table.php |
Database migration |
| Factory | database/factories/PostFactory.php |
Model factory with faker |
| Seeder | database/seeders/PostSeeder.php |
Database seeder |
| Routes | routes/api.php |
API resource routes (appended) |
Field Definition Syntax
Supported Types
| Type | Migration | Validation | Faker |
|---|---|---|---|
string |
string() |
string\|max:255 |
word() |
text |
text() |
string |
paragraph() |
integer |
integer() |
integer |
numberBetween() |
boolean |
boolean() |
boolean |
boolean() |
date |
date() |
date |
date() |
datetime |
dateTime() |
date |
dateTime() |
decimal |
decimal() |
numeric |
randomFloat() |
json |
json() |
array |
[] |
foreignId |
foreignId() |
integer\|exists:table,id |
numberBetween() |
Modifiers
| Modifier | Effect |
|---|---|
nullable |
Field is optional |
unique |
Adds unique constraint + validation |
index |
Adds database index |
default(value) |
Sets default value |
Smart Field Detection
Field names automatically get appropriate faker methods:
*email*→safeEmail()*name*→name()*phone*→phoneNumber()*price*,*amount*→randomFloat(2, 10, 1000)*_id→numberBetween(1, 10)*title*→sentence(3)*description*,*content*→paragraph()
Examples
Blog Post
Product
User Profile
Generated Code Examples
Service with Search
Controller
Update Request with Unique Validation
Command Options
Configuration
Customizing Stubs
Publish stubs to customize generated code:
Stubs will be published to stubs/make-full/.
License
MIT
All versions of laravel-make-full with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
The package campelo/laravel-make-full contains the following files
Loading the files please wait ...