Skip to content

Instantly share code, notes, and snippets.

View bacanu's full-sized avatar

Cosmin Bacanu bacanu

View GitHub Profile
@bacanu
bacanu / Plugin.php
Created February 17, 2017 11:54 — forked from jblyberg/Plugin.php
Share Laravel 5.1 session and check authentication from Moxiemanager.
<?php
/*
|--------------------------------------------------------------------------
| Sharing Laravel's session and checking authentication
|--------------------------------------------------------------------------
|
| Customized Moxiemanager plugin for use in our Laravel App. We use a custom
| External authentication module, but you get the gist (ha ha) of it.
| Put the Plugin.php file in moxiemanager/plugins/LaravelAuthenticator