how to use auth in laravel 5. code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
$userId = Auth::id();
//namespace
use Illuminate\Support\Facades\Auth;