That's just namespacing basics. Since your facade is in the MyFacades\Services namespace, just trying to call Session looks for it in the same namespace. You'll need a use statement at the top of your file.
Thanks for your reply. But How to use?
I have
namespace Yvoting\Services;
class HelloWorld
{
public function sayHello()
{
$vv = Session::get('sss', 'sssf');
}
}
Solved, thanks thepsion5:
namespace Yvoting\Services;
use Session;
class HelloWorld
{
public function sayHello()
{
$vv = Session::get('sss', 'sssf');
}
}
Or you can do this also:
\Session::get('bla');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community