PHP code example of cracki / dogger
1. Go to this page and download the library: Download cracki/dogger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cracki / dogger example snippets
//in api.php or web.php
Route::group([
'middleware'=> 'dogger'
], function () {
...
//Your routes is here.
...
});
//response json as follow
{
'result' : 'error', // (or 'success' accepted only 2 enum)
...
}
php artisan vendor:publish --tag=config --provider="Cracki\Dogger\DoggerServiceProvider"
php artisan migrate