change the default home laravel

2

Someone knows how to change the welcome.balde.php that has the default laravel and change it to home.blade.php .

I tried configuring it in the reoutes.php but I still get the welcome, do you have to make a configuration to run?

<?php
  Route::get('/', function(){
    //return View::make('home');
    return '55';
  });
    
asked by Albert Arias 11.04.2017 в 18:24
source

2 answers

3

In Laravel 5.4 the "frontend" routes are usually found in routes / web.php, that's where you have to make the modification:

<?php

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

link

    
answered by 11.04.2017 / 18:47
source
0

If you are using laravel 5.4 test using

return view('home');
    
answered by 11.04.2017 в 18:35