Skip to content

Extra information

Azizul Hakim edited this page Jan 4, 2026 · 6 revisions

Additional development tools and commands.

πŸ› οΈ Code Generators

CRUD Generator

php artisan make:crud Product

Creates:

  • Model & Factory
  • Migration
  • Controller
  • Service & Repository
  • DTOs
  • Routes
  • Tests

DTO Generator

php artisan make:dto ProductDTO

Creates:

  • Data Transfer Object
  • Readonly properties
  • Validation rules

Service Generator

php artisan make:service Product/ProductService

Creates:

  • Service class
  • Interface
  • Repository binding

πŸ”§ Development Commands

Code Quality

# Fix code style
php artisan pint

# Clear all caches
php artisan optimize:clear

# Generate IDE helpers
php artisan ide-helper:generate
php artisan ide-helper:models
php artisan ide-helper:meta

Database

# Fresh migration with seeds
php artisan migrate:fresh --seed

# Rollback specific migration
php artisan migrate:rollback --step=1

# Generate seeder
php artisan make:seeder ProductSeeder

Cache Management

# Clear all caches
php artisan optimize:clear

# Clear specific cache
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

οΏ½ Package Information

Key Dependencies

{
    "laravel/framework": "^10.0",
    "laravel/sanctum": "^3.2",
    "spatie/laravel-permission": "^5.10",
    "laravel/telescope": "^4.14",
    "laravel/pulse": "^1.0",
    "spatie/laravel-health": "^1.22",
    "spatie/laravel-backup": "^8.1",
    "maatwebsite/excel": "^3.1",
    "spatie/laravel-media-library": "^10.0"
}

Development Tools

{
    "laravel/pint": "^1.0",
    "laravel/sail": "^1.18",
    "barryvdh/laravel-ide-helper": "^2.13",
    "knuckleswtf/scribe": "^4.23"
}

πŸš€ Git Hooks

Husky Integration

# Install hooks
npx husky install

# Add pre-commit hook
npx husky add .husky/pre-commit "php artisan pint"

Pre-commit Checks

  • Code style fixing
  • Test execution
  • Static analysis

πŸ› Debugging

Enable Debug Mode

APP_DEBUG=true
APP_ENV=local

Telescope Debugging

# Install telescope
php artisan telescope:install

# Clear telescope data
php artisan telescope:prune

Log Levels

Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);

For detailed documentation, see the Features Guide.

πŸ“š Documentation Structure

Home

  • Home - Documentation Overview

πŸš€ Getting Started

⚑ Core Features

πŸ“Š Monitoring & Testing

πŸ› οΈ Development

πŸ”— Quick Links

🀝 Community

Clone this wiki locally