PHP code example of kukuhkkh / laravel-command

1. Go to this page and download the library: Download kukuhkkh/laravel-command 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/ */

    

kukuhkkh / laravel-command example snippets


php artisan make:repository UserRepository

php artisan make:repository Backend\UserRepository

php artisan module:make-repository UserRepository Blog

php artisan module:make-repository Backend\UserRepository Blog



namespace App\Repositories;

class UserRepository
{
    public function __constuct()
    {
        //
    }
}



php artisan make:service UserService

php artisan make:service Backend\UserService

php artisan module:make-service UserService

php artisan module:make-service Backend\UserService

php artisan make:trait HasAuth

php artisan make:trait Backend\HasAuth

php artisan module:make-trait HasAuth

php artisan module:make-trait Backend\HasAuth

php artisan make:view index

php artisan make:view user\index

php artisan module:make-view index

php artisan module:make-view user\index