doulei1965 2015-04-25 06:42
浏览 19

粘贴的视图文件没有更新,但复制的代码在Laravel 5中有效吗?

I went through a very weird issue in Laravel 5 yesterday. I had a test project where I was playing around with things and I had my real project where I implement the stuff I am sure about.

I installed the Smart Admin Theme in my demo project first to see how things go and when I was sure, I simply copied all the content of the public folder as well as the views folder and pasted them respectively.

I tried navigating to auth/login and it gave me an exception saying that view app not found in the login view which makes some sense because the original login view was extending the app view but I had removed all those files and this was the Smart Admin login page which did not extend app.

I went on digging but could not figure out anything. Later I installed a fresh copy of laravel but this time I did not copy paste the files but instead copied and pasted the content of the files into the login and register pages that come built in and this time it worked perfectly.

Can anyone tell me why the copied files did not work but when I just copied the content, it worked. I checked that both my demo project and it's folders have the same permissions especially the storage folder. I also tried clearing my cache but in vain.

  • 写回答

1条回答 默认 最新

  • doumao1917 2015-04-29 21:57
    关注

    I think there is no Laravel answer for this question. This is a strange behavior and can have many reasons. I would say a answer is hypothetical without seeing the error in action.

    评论

报告相同问题?

悬赏问题

  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等