有谁知道如何更改welcome.balde.php
Laravel 默认拥有的那个并将其更改为home.blade.php
.
我尝试在 reoutes.php 中配置它,但仍然受到欢迎,我是否必须进行配置才能运行?
<?php
Route::get('/', function(){
//return View::make('home');
return '55';
});
有谁知道如何更改welcome.balde.php
Laravel 默认拥有的那个并将其更改为home.blade.php
.
我尝试在 reoutes.php 中配置它,但仍然受到欢迎,我是否必须进行配置才能运行?
<?php
Route::get('/', function(){
//return View::make('home');
return '55';
});
在 Laravel 5.4 中,“前端”路由通常位于 routes/web.php 中,您应该在此处进行修改:
https://laravel.com/docs/5.4/routing#basic-routing
如果您使用的是 Laravel 5.4,请尝试使用