Skip to content

Extra information

Azizul Hakim edited this page May 24, 2024 · 3 revisions

Generate IDE Helper Files:

Generate general IDE helper files for improved code autocompletion and navigation by running:

php artisan ide-helper:generate

Generate IDE model helper files without writing to model files using:

#use any one of this two commands
php artisan ide-helper:models -N
php artisan ide-helper:models --nowrite

Extra Artisan Commands

This project provides additional Artisan commands to simplify your workflow and enhance productivity.

Run PHP CS Fixer

php artisan csfixer:run

This command ensures that your code adheres to the predefined coding standards, making your codebase clean and readable.

Create a Service

Creating services for your application is made effortless. Use the following command to generate a service:

php artisan make:service subfolder/ServiceName

Replace subfolder and ServiceName with the actual values you need. You can also create a service without a subfolder:

php artisan make:service TestService

The newly created service will be located at app/Http/Services/TestService.php, ready to handle your application's business logic.

Create CRUD Starter

Generate all the necessary boilerplate files for a specific entity (such as model, controller, routes, resource, request, service, etc.) using the following command:

php artisan make:crud Test

This command will create all the required boilerplate files for the Test entity.

Leverage these Artisan commands to streamline your development process and maintain a well-structured codebase.

Clone this wiki locally