Blogger Information
Blog 42
fans 0
comment 0
visits 36456
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
全量修改文件App名称和改动views位置设置
庆选的博客
Original
1311 people have browsed it

1、配置php环境

计算机 --> 属性 --> 高级系统设置 --> 环境变量 --> Path --> 编辑:将系统文件处php最该版本地址编辑进去 (本机:D:\phpstudy_pro\Extensions\php\php7.3.4nts)

2、composer的安装 安装完成后 敲入命令含验证即可

3、使用命令行进入需要修改的laravel目录下(目录下含有artisan的):命令行敲入代码 php artisan app:name xpcms (在系统文件中xpcms和原来app之间建立映射关系)

1.png

4、手动修改文件中原来App名称文xpcms

5、手动修改vender/composer/autoload_static.php (143行) 吧app改为xpcms

      vender/composer/autoload_static.php (4005行) 吧app改为xpcms

6、 composer.json(36行) app改为xpcms 1
 
将views移动至Controller平级目录: 

1、views移动到Http目录下,和Controllers目录平级。
2、 修改config/view.php 吧resource_path('views')改为 base_path('xpcms/Http/views')


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post