Mpociot\CaptainHook\Webhook::lastLog PHP Method

lastLog() public method

Retrieve the logs for a given hook.
public lastLog ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany
    public function lastLog()
    {
        return $this->hasOne(WebhookLog::class)->orderBy('created_at', 'DESC');
    }