Skip to content

Instantly share code, notes, and snippets.

@edgji
edgji / StatelessPersistenceRepository.php
Created February 14, 2016 21:29
stateless Sentinel for Lumen 5.2
<?php
namespace App\Sentinel\Persistences;
use Cartalyst\Sentinel\Persistences\PersistableInterface;
use Cartalyst\Sentinel\Persistences\PersistenceRepositoryInterface;
class StatelessPersistenceRepository implements PersistenceRepositoryInterface
{
/**
@edgji
edgji / .profile
Created April 30, 2015 05:04
php-fpm-restart alias
alias phpfpm='echo "Stopping php-fpm..." && launchctl unload -Fw ~/Library/LaunchAgents/homebrew.mxcl.php56.plist && echo "Starting php-fpm..." && launchctl load -Fw ~/Library/LaunchAgents/homebrew.mxcl.php56.plist && echo "php-fpm restarted"'