PHP code example of getsolaris / laravel-make-service
1. Go to this page and download the library: Download getsolaris/laravel-make-service 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/ */
getsolaris / laravel-make-service example snippets
// app/Http/Services/UserService.php
namespace App\Services;
/**
* Class UserService
* @package App\Services
*/
class UserService
{
}
// app/Http/Services/Contracts/UserServiceInterface.php
namespace App\Services\Interfaces;
/**
* Interface UserServiceInterface
* @package App\Services\Interfaces
*/
interface UserServiceInterface
{
}
bash
$ php artisan make:service UserService