Support the ongoing development of Laravel.io →
Authentication Requests
Last updated 2 years ago.
0

Hello @4unkur.

The Auth "class" that you want is a Facade (more info here: http://laravel.com/docs/5.1/facades)

Basically you have two ways to use it:

  • Importing it =>
use Auth; //Yeap it is really easy, because is a Facade

and then use

Auth::check();
  • Not importing, and accessing directly, like this:
\Auth::check();

That's all :P

Hope it helps.

PS: I recommend you this course about "Learn Laravel" to develop a step-by-step project with Laravel: https://www.udemy.com/laravel-5-course-learn-php-laravel/?couponCode=forum

Best wishes.

Last updated 9 years ago.
0

#Thank you very much!

I really appreciate that.

0

You're welcome, glad it helps.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

4unkur 4unkur Joined 15 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.