Run the PHP dev server on your given port
php -S 0.0.0.0:8080 -t public public/index.php
In httpie, pass ?XDEBUG_SESSION_START=foobar
on the query string with the request
<?php | |
/** | |
* Issue reporter for GitHub (http://www.st-joris-turnhout.be) | |
* ----------------------------------------------------------- | |
* @author: Tim Joosten | |
* @license: Closed Source license | |
* @since: 2015 | |
* @package: GitHub issue reporter | |
*/ |
public function postRegister() { | |
$validator = Validator::make( | |
['firstname' => ['required', 'alpha', 'min:2']], | |
['lastname' => ['required', 'alpha', 'min:2']], | |
['email' => ['required', 'email', 'unique:users']], | |
['password_confirmation' => ['required', 'alpha_num', 'between6,12']], | |
['password' => ['required', 'aplha_num', 'between:6,12', 'confirmed']] | |
); | |
if($validator->passes()) { |
/** | |
* Display all the soldiers. | |
* | |
* @access public | |
* @link GET /soldiers/all | |
* @return Response | |
*/ | |
public function Soldiers() { | |
return response()->json([ | |
'error' => false, |
$resource = new Collection($variable['result'], function($Data) { | |
return [ | |
[ | |
'id' => (int) $Data['id'], | |
'Voornaam' => (string) $Data['Voornaam'], | |
'Achternaam' => (string) $Data['Achternaam'], | |
'Burgerlijke stand' => (string) $Data['Burgerlijke_stand'], | |
'Dienst nr' => (string) $Data['Stam_nr'], | |
'Regiment ID' => (int) $Data['regiment_id'], | |
'Regiment' => (string) $Data['regiment']['Regiment'], |
public function insertRegiment(Request $request) { | |
$v = Validator::make($request->all()), [ | |
'Regiment' => 'A regiment name is required' | |
]); | |
if ($v->fails()) { | |
return 'meh'; | |
} |
array(2) { | |
["data"]=> | |
array(5) { | |
[0]=> | |
array(1) { | |
[0]=> | |
array(24) { | |
["id"]=> | |
int(1) | |
["Voornaam"]=> |
<?php | |
// PHP information | |
// You can search it. By pressing ctrl+F (Windows) or cmd+F (OSX) | |
// And type Openssl. | |
phpinfo(); | |
// Upload this file trough SFTP of SSH. | |
// And Call it trough the browser. | |
// http://www.<domain>.<tld>/<path/to/file> |
ErrorException in compiled.php line 2506: | |
Trying to get property of non-object | |
in compiled.php line 2506 | |
at HandleExceptions->handleError('8', 'Trying to get property of non-object', '/Users/tim/Documents/Miet-Ooms/laravel/vendor/compiled.php', '2506', array('request' => object(Request), 'response' => null)) in compiled.php line 2506 | |
at VerifyCsrfToken->addCookieToResponse(object(Request), null) in compiled.php line 2492 | |
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17 | |
at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9059 | |
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12216 | |
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9059 | |
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 10917 |