Download the PHP package sobhan-aali/laravel-repo-controller-generator without Composer
On this page you can find all versions of the php package sobhan-aali/laravel-repo-controller-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sobhan-aali/laravel-repo-controller-generator
More information about sobhan-aali/laravel-repo-controller-generator
Files in sobhan-aali/laravel-repo-controller-generator
Package laravel-repo-controller-generator
Short Description Generate controller, repository and request files.
License MIT
Informations about the package laravel-repo-controller-generator
🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, resources, and collections — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, and resources — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command. It promotes clean architecture by separating concerns using repositories, request validation, and resource transformation.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
You can extend your Eloquent models from this base class for consistency.
🚀 Usage
Run the following command to generate a complete CRUD setup:
⚠️ Note: The names# 🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, and resources — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command. It promotes clean architecture by separating concerns using repositories, request validation, and resource transformation.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
You can extend your Eloquent models from this base class for consistency.
🚀 Usage
Run the following command to generate a complete CRUD setup:
⚠️ Note: The names# 🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, and resources — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command. It promotes clean architecture by separating concerns using repositories, request validation, and resource transformation.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
You can extend your Eloquent models from this base class for consistency.
🚀 Usage
Run the following command to generate a complete CRUD setup:
🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, and resources — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command. It promotes clean architecture by separating concerns using repositories, request validation, and resource transformation.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
You can extend your Eloquent models from this base class for consistency.
🚀 Usage
Run the following command to generate a complete CRUD setup:
⚠️ Note: The namespace must begin with
Api/Vfollowed by your desired version (e.g.,V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
🎯 Resources
-
app/Http/Resources/Post/PostResource.php app/Http/Resources/Post/AdminPostResource.php
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
All files are tightly connected and follow Laravel's best practices. With minimal adjustments, you can plug them directly into your application and get started fast.
⚠️ Note: The namespace must begin with
Api/Vfollowed by your desired version (e.g.,V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
🎯 Resources
🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, and resources — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command. It promotes clean architecture by separating concerns using repositories, request validation, and resource transformation.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
You can extend your Eloquent models from this base class for consistency.
🚀 Usage
Run the following command to generate a complete CRUD setup:
⚠️ Note: The namespace must begin with
Api/Vfollowed by your desired version (e.g.,V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
🎯 Resources
-
app/Http/Resources/Post/PostResource.php app/Http/Resources/Post/AdminPostResource.php
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
All files are tightly connected and follow Laravel's best practices. With minimal adjustments, you can plug them directly into your application and get started fast.
-
app/Http/Resources/Post/PostResource.php app/Http/Resources/Post/AdminPostResource.php
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
All files are tightly connected and follow Laravel's best practices. With minimal adjustments, you can plug them directly into your application and get started fast.
pace must begin with Api/V followed by your desired version (e.g., V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
🎯 Resources
-
app/Http/Resources/Post/PostResource.php app/Http/Resources/Post/AdminPostResource.php
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
All files are tightly connected and follow Laravel's best practices. With minimal adjustments, you can plug them directly into your application and get started fast.
pace must begin with Api/V followed by your desired version (e.g., V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
🎯 Resources
-
app/Http/Resources/Post/PostResource.php app/Http/Resources/Post/AdminPostResource.php
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
All files are tightly connected and follow Laravel's best practices. With minimal adjustments, you can plug them directly into your application and get started fast.
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command.
It promotes clean architecture by separating concerns using repositories, request validation, resource transformation, and unified collection handling.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
-
✅ Resource Traits to share common fields between
AdminandPublicresources (DRY-friendly) - ✅ Collections t# 🚀 Laravel Repo Controller Generator
A lightweight Laravel package to generate full-featured CRUD controllers, repositories, form requests, and resources — all in one shot.
👋 Introduction
Hi, I'm Sobhan Aali — thanks for checking out this package!
laravel-repo-controller-generator is designed to speed up your Laravel development workflow by generating a full CRUD setup with just one Artisan command. It promotes clean architecture by separating concerns using repositories, request validation, and resource transformation.
📦 Features
-
✅ Generate CRUD Controllers
-
✅ Automatically create Repositories
-
✅ Generate Form Requests for
storeandupdate -
✅ Create API Resources (both admin and public versions)
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
You can extend your Eloquent models from this base class for consistency.
🚀 Usage
Run the following command to generate a complete CRUD setup:
⚠️ Note: The namespace must begin with
Api/Vfollowed by your desired version (e.g.,V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
🎯 Resources
-
app/Http/Resources/Post/PostResource.php app/Http/Resources/Post/AdminPostResource.php
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
All files are tightly connected and follow Laravel's best practices. With minimal adjustments, you can plug them directly into your application and get started fast.
o unify and standardize API responses for index and paginate endpoints
- ✅ Clean file structure based on namespace conventions
⚙️ Installation
Install the package via Composer:
🧱 Before You Start
1. Publish Stub Files
The package uses stub templates to generate your classes. Run this command to publish them for customization:
2. Use the GetFillables Trait
Make sure your base model uses the GetFillables trait for automatic field generation:
🚀 Usage
Run the following command to generate a complete CRUD setup:
⚠️ Note: The namespace must begin with
Api/Vfollowed by your desired version (e.g.,V1).
🗂️ What Gets Generated?
Running the command above will generate the following files for the Post model:
🧾 Form Requests
-
app/Http/Requests/Admin/CRUD/Post/StorePostRequest.php app/Http/Requests/Admin/CRUD/Post/UpdatePostRequest.php
میخوای بخش ApiResponse::success رو بذارم به صورت یک helper مستقل هم توضیح بدم (مثلاً success / error / validation) یا فقط توی Collection کفایت میکنه؟### 🎯 Resources & Traits
-
app/Http/Resources/Post/PostResource.php -
app/Http/Resources/Post/AdminPostResource.php app/Http/Resources/Post/PostResourceTrait.php→ shared fields between resources
📚 Collections
-
app/Http/Resources/Post/PostCollection.phpEnsures consistent response format for lists and paginated results.
🧠 Repository
app/Repositories/Eloquent/PostRepository.php
🎮 Controller
app/Http/Controllers/Api/V1/Admin/CRUD/PostController.php
🔑 Key Benefits of New Features
Resource Traits
-
Common fields like
id,title,created_atare stored in the trait. -
Both
AdminandPublicresources extend the trait and only merge their specific fields. - Keeps your resources DRY and easy to maintain.
Collections
-
Standardizes API responses for
indexandpaginate. -
Ensures all collections follow a consistent format across your project.
- Works seamlessly with Laravel's
ResourceCollection.
🔧 Usage Example
You can wrap your collections with the built-in response helper for consistent API outputs:
bash composer require sobhan-aali/laravel-repo-controller-generator:dev-master bash php artisan vendor:publish --tag=repo-controller-stubs bash php artisan make:repo-controller Api/V1/Admin/CRUD/PostController
✅ Example Response
👉 With these features, you’ll get faster development, cleaner code, and consistent API responses across your Laravel app.