Skip to content

Instantly share code, notes, and snippets.

@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.