Looking to hire Laravel developers? Try LaraJobs

laravel-make-service maintained by st-man-hori

Description
create service class and service interface for laravel
Last update
2023/05/08 05:07 (dev-main)
License
Links
Downloads
35

Comments
comments powered by Disqus

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
{
    //
}