简体   繁体   English

与Laravel认证冲突

[英]Conflicts with Laravel authentication

I created a Laravel app with a basic master.blade.php, header & footer and then my home.blade.php. 我使用基本的master.blade.php,页眉和页脚以及我的home.blade.php创建了Laravel应用。

In my routes.php, I have: 在我的routes.php中,我有:

Route::get('/', function () {
    return view('home');
});

This was working fine until I ran the php artisan make:auth command. 直到我运行php artisan make:auth命令,此方法才能正常工作。 Now I have this in my routes: 现在我的路线中有这个:

Route::auth();

Route::get('/home', 'HomeController@index');

And my previous home page I created is now using the new views that it auto created. 我以前创建的主页现在正在使用它自动创建的新视图。

What's the correct way to get back to my previous home design? 回到我以前的家居设计的正确方法是什么?

Laravel docs says that only run it on fresh installation. Laravel文档说,只能在全新安装上运行它。 You did not. 你没有。 Simple. 简单。

If you are using git, just revert to an earlier version. 如果您使用的是git,则只需还原到早期版本即可。

Maybe you can get something using file recovery tools too. 也许您也可以使用文件恢复工具获得一些帮助。

I don't think there is a clean general solution for you, sorry. 抱歉,我认为没有适合您的通用解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM