📜  laravel fortify - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:48.606000             🧑  作者: Mango

代码示例3
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use Laravel\Fortify\Fortify;

Fortify::loginView(function () {
    return Inertia::render('Auth/Login', [
        'canResetPassword' => Route::has('password.request'),
        'status' => session('status'),
    ]);
});