dam1r89/test-hooks

Creates a webhooks that make end to end or manual testing of Laravel apps easier. Allows creating db snapshots and changing app date.

Installs: 2 338

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dam1r89/test-hooks

1.0.2 2017-04-01 15:27 UTC

This package is auto-updated.

Last update: 2025-09-21 05:23:42 UTC


README

Adds a webhooks useful for testing

composer require --dev dam1r89/test-hooks

Configuration:

config/app.php

dam1r89\TestHooks\TestHooksServiceProvider::class,

Publish

php artisan vendor:publish --tag="testhooks"

by default it works only on testing and local environment.

Methods

Supports only mysql database.

Method Route Params Explanation
GET /test-hooks/db Return list of all states
PUT /test-hooks/db force - overrides previous state, state - state name Store state
PUT /test-hooks/db/restore state - state name Restore previously saved state
GET /test-hooks/date Get curren test date
PUT /test-hooks/date date - in format '2017-04-01 13:00:13' Set testing date
DELETE /test-hooks/date Clear test date

Extension

With extension you can do it from chrome browser. Get it here

preview