utmsandeep
10 months ago

Using Auth::user(); in core php

Posted 10 months ago by utmsandeep

I'm working on a project , the problem is that some part of the project is made in laravel and some part in core php . Now i want to perform authentication through Auth Facade for my project . Some files are being accessed through routes and some files which are in core php are being accessed directly . so the files which are being accessed through routes Auth is working perfect But what to do for core php files , i don't want to use $_SESSION. Please suggest me a way to use Auth in my core php files.

Please sign in or create an account to participate in this conversation.