2017 © Pedro Peláez
 

library artisan-observer-maker

Artisan Command To Create A Observer Stub

image

ajayexpert/artisan-observer-maker

Artisan Command To Create A Observer Stub

  • Monday, November 6, 2017
  • by ajayexpert
  • Repository
  • 1 Watchers
  • 0 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 177 % Grown

The README.md

ObserverMaker

Latest Version on Packagist ![Software License][ico-license] ![Total Downloads][ico-downloads], (*1)

ObserverMaker creates an artisan command that lets you quickly create a observer stub., (*2)

Install

Via Composer, (*3)

composer require ajayexpert/artisan-observer-maker

In your app/config/app.php file, add the following to the providers array:, (*4)

AjayExpert\ObserverMaker\ObserverMakerServiceProvider::class,

Usage

Once installed, you should see make:observer as one of the artisan commands when you run:, (*5)

php artisan list

To use this command, supply it with two arguments, the first being the name of the observer, and the second being the name of the folder you want it to reside in. If the folder does not exist, it will be created for you., (*6)

For example:, (*7)

php artisan make:observer TestObserver

This would create a directory named Observers in your app directory with a php file named TestObserver.php, which would contain the following stub:, (*8)

<?php
namespace App\Observers;

use App\Test;

class TestObserver 
{

}

Please note, the package currently only supports observer folders that are in the app folder, for example:, (*9)

app/Observers

Use Observers in laravel see the Documentation, (*10)

Security

If you discover any security related issues, please email ajay.expert@live.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/ajayexpert/artisan-observer-maker

Artisan Command To Create A Observer Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 ajayexpert observer-maker artisan-observer-maker laravel observer

06/11 2017

v1.0.2

1.0.2.0 https://github.com/ajayexpert/artisan-observer-maker

Artisan Command To Create A Observer Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 ajayexpert observer-maker artisan-observer-maker laravel observer

13/09 2017

v1.0.1

1.0.1.0 https://github.com/ajayexpert/artisan-observer-maker

Artisan Command To Create A Observer Stub

  Sources   Download

MIT

The Requires

 

laravel artisan laravel 5 ajayexpert observer-maker artisan-observer-maker laravel observer