Skip to content

Instantly share code, notes, and snippets.

0xB41770d882fc7623329bdb25512937Bd91523473
0xab15B09CCFf24Ed59f38Ce93ef0df2ae169f8707
0xdCBac25f7e5A753b898CC67aBB28DbA8E84eAe69
@nikosv
nikosv / gist:296f0bc16cbbae2fec98
Last active May 6, 2021 08:09 — forked from frzsombor/gist:ddd0e11f93885060ef35
Share Laravel 5 session and check authentication from external projects
<?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.