You can do it in two ways.
First:
<?php
namespace App\Controller;
class FooController
{
public function doAction()
{
$auth = \Auth::login();
}
}
Second:
<?php
namespace App\Controller;
use Auth;
class FooController
{
public function doAction()
{
$auth = Auth::login();
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community