2017 © Pedro Peláez
 

library hook

Package for allowing and monitoring a[pp access.

image

httpoz/hook

Package for allowing and monitoring a[pp access.

  • Monday, March 26, 2018
  • by httpoz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 18 % Grown

The README.md

Build Status codecov Total Downloads, (*1)

Installation

Composer

Add the package to your project via composer., (*2)

composer require httpoz/hooks

Publish

Run this to publish the package's migrations, (*3)

php artisan vendor:publish --provider="HttpOz\Hook\HookServiceProvider"

Middleware

This package comes with ValidateHookMiddleware. You need to add it to your app/Http/Kernel.php., (*4)

<?php
/**
 * The application's route middleware.
 *
 * @var array
 */
protected $routeMiddleware = [

    // ...

    'validateHook' => \HttpOz\Hook\Http\Middleware\ValidateHookMiddleware::class,
];

Now you can add this middleware to your routes. You will also need the prefix, you can call it anything you want but the hook id itself should be the second segment in your url., (*5)

<?php

// Route group
Route::group(['prefix' => 'hooks/{hook}', 'middleware' => 'validateHook'], function(){
    Route::resource('notification', 'NotificationController');
});

The Versions

26/03 2018

dev-master

9999999-dev https://github.com/httpoz/hook

Package for allowing and monitoring a[pp access.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Mwanandimai

laravel

26/03 2018

v0.4.0

0.4.0.0 https://github.com/httpoz/hook

Package for allowing and monitoring a[pp access.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Mwanandimai

laravel

26/03 2018

v0.3.0

0.3.0.0 https://github.com/httpoz/hook

Package for allowing and monitoring a[pp access.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Mwanandimai

laravel

26/03 2018

v0.2.0

0.2.0.0 https://github.com/httpoz/hook

Package for allowing and monitoring a[pp access.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Mwanandimai

laravel

26/03 2018

v0.1.0

0.1.0.0 https://github.com/httpoz/hook

Package for allowing and monitoring a[pp access.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oscar Mwanandimai

laravel