Mpociot\CaptainHook\Http\WebhookController::all PHP Method

all() public method

Get all of the webhooks generated by the user.
public all ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
return Response
    public function all(Request $request)
    {
        return Webhook::where('tenant_id', $this->getTenantId($request))->with('lastLog')->with('logs')->orderBy('created_at', 'desc')->get();
    }