| 1 | <?php |
||
| 17 | class Webhook extends Eloquent |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Cache key to use to store loaded webhooks. |
||
| 21 | */ |
||
| 22 | const CACHE_KEY = 'mpociot.captainhook.hooks'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Make all fields fillable. |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | public $fillable = ['id', 'url', 'event', 'tenant_id']; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Boot the model |
||
| 32 | * Whenever a new Webhook get's created the cache get's cleared. |
||
| 33 | */ |
||
| 34 | public static function boot() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Retrieve the logs for a given hook. |
||
| 53 | * |
||
| 54 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 55 | */ |
||
| 56 | public function logs() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Retrieve the logs for a given hook. |
||
| 63 | * |
||
| 64 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 65 | */ |
||
| 66 | public function lastLog() |
||
| 70 | } |
||
| 71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.