1)使用 laravel 抛出 404 头很简单

abort(404);

还可以添加描述

abort(404, '404 File Not Fund');

 

 

2)如果想自定义 404 页面模版,直接添加/修改 resources/views/errors/404.blade.php 文件就可以了

相关文章:

  • 2021-06-03
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-11-24
  • 2021-11-14
  • 2021-09-20
相关资源
相似解决方案