php - Laravel Authentication With External User Table -


i made laravel based web app uses it's default auth methods. has slight modifications suit needs, role management, not issue here.

the client i'm working has existing php based app/website has it's own custom user auth table/db.

the main problem here - he log in laravel site using session data old site, without authenticating twice.

is there way achieve , if yes, how solved?

thanks in advance.

i had similar issue. problem little simpler — all cared having logged-in-session, actual user profile or permissions weren’t necessary — but anyway should on right path.

i created file called index_laravel.php, , used .htaccess route requests instead of index.php.

<?php $path = "../../bootstrap/"; require($path . 'autoload.php'); $app = require_once($path . 'app.php'); $app->make('illuminate\contracts\http\kernel')->handle(illuminate\http\request::capture()); if( !$app['auth']->check() ) {     echo('please login through [blah blah whatever].');     // or header("location:…") here } else {     require_once('index.php'); } 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -