slyusarchyn/laravel-service-creator

Laravel service creator


Keywords
package, laravel, service creator
License
GPL-2.0

Documentation

Laravel service creator

PHP Downloads Stars

Laravel service creator

Installation

To install this package you will need:

  • Laravel 5.5 +
  • PHP >= 7.1.3

Install via composer - edit your composer.json to require the package.

"require": {
    "slyusarchyn/laravel-service-creator": "1.0.*"
}

Then run composer update in your terminal to install it in.

OR

Run composer require slyusarchyn/laravel-service-creator

After installation you need to add the service provider to your app.php config file.

'providers' => [
    // ...
    Slyusarchyn\LaravelServiceCreator\LaravelServiceCreatorServiceProvider::class,
    // ...
],

How to use?

Create new service

For creating new service, you should use that command where "UserService" is your service name.

php artisan make:service UserService

Create new service with service provider

If you want to create a service with a service provider, you should use that command:

php artisan make:service UserService --p

If you have created a new service provider, you must add it to the app.php config file.

License

MIT License

Copyright (c) 2019 slyusarchyn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.