redirect if authenticated laravel for jwt token code example Example: laravel auth //namespace use Illuminate\Support\Facades\Auth;