PHP code example of notiv / laravel-domain-commands

1. Go to this page and download the library: Download notiv/laravel-domain-commands library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

notiv / laravel-domain-commands example snippets

diff


...
+use Notiv\Console\CommandLoader;

class Kernel extends ConsoleKernel
{
    protected function commands()
    {
        $this->load(__DIR__ . '/Commands');

+       CommandLoader::loadCommands();

        

php artisan vendor:publish --tag="domain-commands-config"