Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

petehouston's avatar

What is the contract for Session facade?

I'm refactoring the code by replacing all the facades to use Contracts. But I couldn't see the contract for Session in the documentation, http://laravel.com/docs/5.0/contracts

Am I missing something here?

0 likes
1 reply
petehouston's avatar
petehouston
OP
Best Answer
Level 2

Oh, nevermind. I've found it eventually.

use Symfony\Component\HttpFoundation\Session\SessionInterface as SessionContract;

Please or to participate in this conversation.