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
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
/** | |
* Create a Symfony response for the given exception. | |
* | |
* @param \Exception $e | |
* @return mixed | |
*/ | |
protected function convertExceptionToResponse(Exception $e) | |
{ | |
if (config('app.debug')) { | |
$whoops = new \Whoops\Run; |
<?php | |
namespace Tests; | |
trait CanAssertFlash | |
{ | |
protected function assertFlash($level, $message, $important = false, $title = null, $overlay = false) | |
{ | |
$expectedNotification = [ | |
'title' => $title, |
To tackle the common application pattern for authenticating, registering, resetting credentials, verifying, and unregistering from an application, the common patterns exists but many implementations make it hard to use the best solutions of different frameworks. While almost each application has this requirement, no standard has been defined.