Laravel 8: 默认路由在哪里?
Laravel 8: where are the default routes?
laravel 8 中使用惯性堆栈的 auth 和团队的默认路由在哪里?
在 laravel 7 中你会在 web.php
中看到类似 Auth::routes()
的内容
现在里面的所有东西都是:-
Route::get('/', function () {
return view('welcome');
});
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return Inertia\Inertia::render('Dashboard');
})->name('dashboard');
没有授权或新团队脚手架路线的迹象,有人知道how/where这些已定义吗?
在Laravel 8中,Jetstream包用于脚手架而不是Laravel UI
。
Laravel's laravel/jetstream
package provides a quick way to scaffold all of the routes, views, and other backend logic needed for authentication using a few simple commands.
安装该软件包将安装布局视图、注册和登录视图,以及所有身份验证的路由 end-points。还将生成一个 /dashboard 路由来处理对应用程序仪表板的 post-login 请求..
Laravel Jetstream默认注册来自JetstreamServiceProvider
的路由,可以通过Jetstream::ignoreRoutes();
.
关闭
Jetstream 说明:https://laravel.com/docs/8.x/authentication#authentication-quickstart
在 Laravel 6/7 中,您 Laravel UI
用于搭建这些东西。
Laravel UI will install a layout view, registration and login views, as well as routes for all authentication end-points. A HomeController will also be generated to handle post-login requests to your application's dashboard.
The laravel/ui package also generates several pre-built authentication controllers, which are located in the App\Http\Controllers\Auth namespace. The RegisterController handles new user registration, the LoginController handles authentication, the ForgotPasswordController handles e-mailing links for resetting passwords, and the ResetPasswordController contains the logic to reset passwords. Each of these controllers uses a trait to include their necessary methods. For many applications, you will not need to modify these controllers at all.
Laravel UI 使用 Auth::routes()
.
LaravelUi说明:https://laravel.com/docs/7.x/authentication#authentication-quickstart
laravel 8 中使用惯性堆栈的 auth 和团队的默认路由在哪里?
在 laravel 7 中你会在 web.php
Auth::routes()
的内容
现在里面的所有东西都是:-
Route::get('/', function () {
return view('welcome');
});
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return Inertia\Inertia::render('Dashboard');
})->name('dashboard');
没有授权或新团队脚手架路线的迹象,有人知道how/where这些已定义吗?
在Laravel 8中,Jetstream包用于脚手架而不是Laravel UI
。
Laravel's
laravel/jetstream
package provides a quick way to scaffold all of the routes, views, and other backend logic needed for authentication using a few simple commands.
安装该软件包将安装布局视图、注册和登录视图,以及所有身份验证的路由 end-points。还将生成一个 /dashboard 路由来处理对应用程序仪表板的 post-login 请求..
Laravel Jetstream默认注册来自JetstreamServiceProvider
的路由,可以通过Jetstream::ignoreRoutes();
.
Jetstream 说明:https://laravel.com/docs/8.x/authentication#authentication-quickstart
在 Laravel 6/7 中,您 Laravel UI
用于搭建这些东西。
Laravel UI will install a layout view, registration and login views, as well as routes for all authentication end-points. A HomeController will also be generated to handle post-login requests to your application's dashboard.
The laravel/ui package also generates several pre-built authentication controllers, which are located in the App\Http\Controllers\Auth namespace. The RegisterController handles new user registration, the LoginController handles authentication, the ForgotPasswordController handles e-mailing links for resetting passwords, and the ResetPasswordController contains the logic to reset passwords. Each of these controllers uses a trait to include their necessary methods. For many applications, you will not need to modify these controllers at all.
Laravel UI 使用 Auth::routes()
.
LaravelUi说明:https://laravel.com/docs/7.x/authentication#authentication-quickstart