phpgearbox / session

Laravel Sessions Standalone
MIT License
16 stars 3 forks source link

Globalize on Laravel Project. #3

Open arturcesarmelo opened 6 years ago

arturcesarmelo commented 6 years ago

In the Laravel project, the Facade Session, which comes from Illuminate\Support\Facades, is confusing with Gears\Session because in every blade layout I use Session::anything (), laravel throws an exception: "You need globalize first ! ", typical of Gears\Session. Could you help me?

Version Laravel@5.2

PrafullaKumarSahu commented 6 years ago

May be you can use $session->globalise(); and this will solve the problem as described in documentation.