Skip to content

Instantly share code, notes, and snippets.

Avatar

Taher NSE tahertechs

View GitHub Profile
@tahertechs
tahertechs / gist:02ceac092f9ac652009b
Created Jan 8, 2016 — forked from frzsombor/gist:ddd0e11f93885060ef35
Share Laravel's session and check authentication from external projects
View gist:02ceac092f9ac652009b
<?php
/*
|--------------------------------------------------------------------------
| Sharing Laravel's session and checking authentication
|--------------------------------------------------------------------------
|
| Use the following code in any CMS (WordPress, Joomla, etc), filemanager (CKFinder,
| KCFinder, simogeos's Filemanager, etc), or any other non-Laravel project to boot into
| the Laravel framework, with session support, and check if the user is authenticated.
You can’t perform that action at this time.