roy404/laravel-commands

A package for custom Laravel Artisan commands

v1.0.4 2025-01-30 20:44 UTC

This package is auto-updated.

Last update: 2025-03-01 00:44:38 UTC


README

To install the package, run the following command:

composer require roy404/laravel-commands

Available Custom Commands

  1. Set Up the Custom Commands Provider
    To integrate the custom commands provider into your application, follow these steps:

    • Navigate to bootstrap/providers.php.
    • Add the following line to the array of providers:
    Roy404\ArtisanCommands\ArtisanCommandsServiceProvider::class
  2. Setup Custom Authentication
    Generates authentication scaffolding with roles, admin, and user routes by default:

    php artisan custom:auth
  3. Clear the cache: After adding the new provider, you should clear the cache and config cache to make sure your changes are applied:

    php artisan config:clear
    php artisan cache:clear 
  4. Setup Docker Environment:
    Builds the project container with Docker, including MySQL, Memcached, phpMyAdmin, and Xdebug:

     php artisan custom:docker

    After the docker configurations installed, run the following command below to generate new app key:

    php artisan key:generate

    You can now build the image:

    docker-compose up --build