laravel जाँच प्रमाणन
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
laravel बनाने auth
Laravel's laravel/ui package provides a quick way to scaffold all of the routes and views you need for authentication using a few simple commands:
composer require laravel/ui
php artisan ui vue --auth
laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
प्रमाणन::लॉगिन में laravel
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
or
Auth::logout();
लारवेल 7 में ऑथ बनाएं
composer require laravel/ui "^2.0"
laravel प्रमाणीकरण उदाहरण
php artisan make:auth