artisan make auth
composer require laravel/ui
php artisan ui vue --auth
artisan make auth
composer require laravel/ui
php artisan ui vue --auth
login and registration in laravel7 using middleware
<?php
namespace App\Http\Middleware;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Support\Facades\Auth;
class user
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
{
// if (Auth::user() =='')
// {
// return redirect(RouteServiceProvider::HOME);
// }
return $next($request);
}
}
how to center vertically in bootstrap col
<div class="my-auto">
...inner divs and content...
</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us