PHP code example of ikechukwukalu / makeservice

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

    

ikechukwukalu / makeservice example snippets

 shell
php artisan make:request SampleRequest

php artisan make:service SampleService --request=SampleRequest
shell
php artisan make:facade User --contract=UserRepositoryInterface
 shell
php artisan make:provider RepositoryServiceProvider
 php
public function register()
{
    $this->app->bind(UserRepositoryInterface::class, UserRepository::class);
}
 php
'providers' => [
    // ...other declared providers
    App\Providers\RepositoryServiceProvider::class,
];
 shell
php artisan make:provider FacadeServiceProvider
 php
public function register()
{
    $this->app->bind('user', UserService::class);
}