publishing stubs
This commit is contained in:
63
stubs/observer.stub
Normal file
63
stubs/observer.stub
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace {{ namespace }};
|
||||
|
||||
use {{ namespacedModel }};
|
||||
|
||||
class {{ class }}
|
||||
{
|
||||
/**
|
||||
* Handle the {{ model }} "created" event.
|
||||
*
|
||||
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
||||
* @return void
|
||||
*/
|
||||
public function created({{ model }} ${{ modelVariable }})
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the {{ model }} "updated" event.
|
||||
*
|
||||
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
||||
* @return void
|
||||
*/
|
||||
public function updated({{ model }} ${{ modelVariable }})
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the {{ model }} "deleted" event.
|
||||
*
|
||||
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
||||
* @return void
|
||||
*/
|
||||
public function deleted({{ model }} ${{ modelVariable }})
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the {{ model }} "restored" event.
|
||||
*
|
||||
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
||||
* @return void
|
||||
*/
|
||||
public function restored({{ model }} ${{ modelVariable }})
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the {{ model }} "force deleted" event.
|
||||
*
|
||||
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
||||
* @return void
|
||||
*/
|
||||
public function forceDeleted({{ model }} ${{ modelVariable }})
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user