du0173 2015-10-05 07:46
浏览 117
已采纳

Laravel 5:覆盖注册页面的默认视图

I want to change the auth process to use another view template. E.g. instead of resources/views/auth/register.blade.php it shall be used resources/views/register.blade.php.

But I struggle to find the code where this view is called.

The only place I found was in app/Services/Register but only if the validators fails. I need the place when the view is called per default.

  • 写回答

4条回答 默认 最新

  • duandu1915 2015-10-05 08:23
    关注

    In AuthController, you can overwrite the method getRegister() method like this :

    public function getRegister()
    {
       return view('register');
    }
    

    Put this code in your AuthController.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 centos7系统下abinit安装时make出错
  • ¥15 hbuildex运行微信小程序报错
  • ¥50 HAL ADCDMA单次触发转换
  • ¥15 关于#python#的问题:我知道这个问题对你们来说肯定so easy
  • ¥15 wpf datagrid如何实现多层表头
  • ¥15 为啥画版图在Run DRC会出现Connect Error?可我Calibre的hostname和计算机的hostname已经设置成一样的了。
  • ¥20 网站后台使用极速模式非常的卡
  • ¥20 Keil uVision5创建project没反应
  • ¥15 mmseqs内存报错
  • ¥15 vika文档如何与obsidian同步