首页 > 解决方案 > 如何在 laravel 5.8 中用一个后端和多个前端构建项目?

问题描述

现在,我的项目中有文件夹

project/
..backend (app, route, resources and etc)
..frontend (index.php, bootstrap, css, js and etc)

如何在 laravel 中用一个后端创建多个前端?*更多前端文件夹被赋予不同的名称

例子 :

project/
..backend (app, route, resources and etc)
..assets (bootstrap, css, js and etc)
..frontend1 (index.php)
..frontend2 (index.php)
..frontend3 (index.php)

我想要一个后端有更多不同的前端,并且将是这样的 URL:

1.localhost/project/frontend1
2.localhost/project/frontend2
3.localhost/project/frontend3

目的是每个前端都有代码来区分数据库中的提取因为用户不想先登录,因为它只是不紧急的数据

标签: phplaravellaravel-5.8

解决方案


推荐阅读