当前位置:网站首页>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
边栏推荐
- It turns out that PID was born in the struggle between Lao wangtou and Lao sky
- Numpy stack function
- Redis data server / database / cache (2022)
- The express project changes the jade template to art template
- JS relearning
- BLDC double closed loop (speed PI + current PI) Simulink simulation model
- Response processing of openfeign
- Source Generator实战
- When using art template inheritance, compileerror: invalid or unexpected token generated
- HLS / chisel uses CORDIC hyperbolic system to realize square root calculation
猜你喜欢
![FileNotFoundError: [Errno 2] No such file or directory](/img/ea/0c3f2768d14c1f4bb42bd1309ab996.png)
FileNotFoundError: [Errno 2] No such file or directory

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

Linux redis - redis database caching service

It turns out that PID was born in the struggle between Lao wangtou and Lao sky

Opencv combines multiple pictures into video

Kubernetes - Introduction to actual combat

最通俗易懂的依赖注入之生命周期
![[format] simple output (2)](/img/24/64739f5e6bbd54bfa9fb78b8c53c94.png)
[format] simple output (2)

MYSQL05_ Ordr by sorting, limit grouping, group by grouping

Service avalanche effect
随机推荐
AspNetCore配置多环境log4net配置文件
[software testing] understand the basic knowledge of software testing
Regular object type conversion tool - Common DOM class
《信息系统项目管理师总结》第四章 项目成本管理
Traversée de l'arbre L2 - 006
Table space capacity query and expansion of Oracle Database
Liunx foundation - zabbix5 0 monitoring system installation and deployment
Use of MySQL command line client and common commands
腾讯视频VIP会员,周卡特价9元!腾讯官方直充,会员立即生效!
L2-006 树的遍历(中后序确定二叉树&层序遍历)
C#中元组对象Tuple的使用
Kubernetes - Introduction to actual combat
最通俗易懂的依赖注入之服务容器与作用域
Binary tree
c#语法糖模式匹配【switch 表达式】
ele之Table表格的封装
Face longitude:
Response processing of openfeign
Xamarin效果第二十二篇之录音效果
ASP.NET 6 中间件系列 - 执行顺序