Image Description
st-man-hori/laravel-make-service
  • 0 Stars
  • 2 years ago

Create Service Class And Interface File Command For Laravel

Install

$ composer require st-man-hori/laravel-make-service --dev

Usage

php artisan make:service {name}

Example

$ php artisan make:service UserService
Services/Userservice.php

<?php

namespace App\Services;

use App\Services\UserServiceInterface;

class UserService implements UserServiceInterface
{
    //
}
Services/UserserviceInterface.php

<?php

namespace App\Services;

interface UserServiceInterface
{
    //
}