| 1 | <?php |
||
| 13 | class Webhook extends Eloquent |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Cache key to use to store loaded webhooks |
||
| 17 | */ |
||
| 18 | const CACHE_KEY = 'mpociot.captainhook.hooks'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Make all fields fillable |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | public $fillable = ['id', 'url', 'event', 'tenant_id']; |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * Boot the model |
||
| 29 | * Whenever a new Webhook get's created the cache get's cleared |
||
| 30 | */ |
||
| 31 | public static function boot() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Retrieve the logs for a given hook. |
||
| 46 | * |
||
| 47 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 48 | */ |
||
| 49 | public function logs() |
||
| 53 | } |
||
| 54 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.