Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.
Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php
and app/Http/Middleware/Authenticate.php
var path = require('path'); | |
module.exports = { | |
entry: path.resolve(__dirname, 'src') + '/app/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist') + '/app', | |
filename: 'bundle.js', | |
publicPath: '/app/' | |
}, |
0x2d0F1c20fcd85bB8CC4309F1a0165ae8aC208c26 |
<? | |
// Link image type to correct image loader and saver | |
// - makes it easier to add additional types later on | |
// - makes the function easier to read | |
const IMAGE_HANDLERS = [ | |
IMAGETYPE_JPEG => [ | |
'load' => 'imagecreatefromjpeg', | |
'save' => 'imagejpeg', | |
'quality' => 100 |
Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.
Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php
and app/Http/Middleware/Authenticate.php
##Create a git repo with a central repository server.
Step 1: Connect to server, create a new, empty directory there and initialize an empty repository.
$ ssh server.com
Last login ...
Welcome to server.com!
> mkdir myrepo.git
> cd myrepo.git
> git --bare init
<?php | |
// data fields for POST request | |
$fields = array( | |
"token" => "2c4b4545a9b80dbac64f490f48cceca4", | |
"firstname" => "firstname", | |
"lastname" => "lastname", | |
"cardnumber" => "4321432143214321", | |
"cardmonth" => "03", | |
"cardyear" => "2020", |