当前位置:网站首页>Laravel new route file
Laravel new route file
2022-04-23 03:03:00 【Stupid little attendant】
-
Suppose we want to create a new routing file web_public.php

We need to be in app/Providers/RouteServiceProvider Register the routing file with the service provider

-
modify boot() Method

-
Add the following method :
/** * Custom routing file */
protected function mapWepPublicRoutes()
{
Route::namespace($this->namespace)
->group(base_path('routes/web_public.php'));
}
public function map()
{
$this->mapWepPublicRoutes();
}
That's all right.
版权声明
本文为[Stupid little attendant]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220630238495.html
边栏推荐
- tf. keras. layers. Inputlayer function
- Sonic cloud real machine tutorial
- JS relearning
- Encapsulation of ele table
- The usage of case when and select case when is very easy to use
- tf. keras. layers. MaxPooling? D function
- Mosaic Routing: implement / home / news
- MAUI初体验:爽
- ASP.NET和ASP.NETCore多环境配置对比
- Summary of interface automation interview questions for software testing
猜你喜欢

树莓派开发笔记(十二):入手研华ADVANTECH工控树莓派UNO-220套件(一):介绍和运行系统

Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel

Openfeign timeout setting

Thoughts on the 2022 national network security competition of the national secondary vocational group (only one idea for myself) - network security competition questions (7)

HLS / chisel practice CORDIC high performance computing complex square root

Sonic cloud real machine tutorial

L2-006 树的遍历(中后序确定二叉树&层序遍历)

Cherno_ Game engine series tutorial (5): 101~

ele之Table表格的封装

Introduction and use of openfeign component
随机推荐
Passing object type parameters through openfeign
Response processing of openfeign
基于.NetCore开发博客项目 StarBlog - (1) 为什么需要自己写一个博客?
Introduction to ACM [TSP problem]
Wepy learning record
SQL statement - DDL
【鉴权/授权】自定义一个身份认证Handler
tf. keras. layers. Density function
ASP.NET 6 中间件系列 - 自定义中间件类
tf. keras. layers. MaxPooling? D function
How to use C language to realize [guessing numbers game]
[software testing] understand the basic knowledge of software testing
《信息系統項目管理師總結》第六章 項目人力資源管理
Niuke white moon race 5 [problem solving mathematics field]
JSON data text
.Net Core 限流控制-AspNetCoreRateLimit
Use of MySQL command line client and common commands
Deep q-network (dqn)
Thoughts on the 2022 national network security competition of the national secondary vocational group (only one idea for myself) - network security competition questions (10)
tf. keras. layers. Conv? D function