This commit is contained in:
Filip Rojek 2020-11-09 23:40:57 +01:00
parent aaae1158e3
commit 16f2077fa5
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function index()
{
return view('home.index');
}
}

View File

@ -0,0 +1 @@
<h1>Home</h1>

View File

@ -1,6 +1,7 @@
<?php <?php
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -16,3 +17,4 @@ use Illuminate\Support\Facades\Route;
Route::get('/', function () { Route::get('/', function () {
return view('welcome'); return view('welcome');
}); });
Route::get('/', [HomeController::class, 'index'])->name('root.index');