no idea
This commit is contained in:
parent
aaae1158e3
commit
16f2077fa5
13
app/Http/Controllers/HomeController.php
Normal file
13
app/Http/Controllers/HomeController.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
1
resources/views/home/index.blade.php
Normal file
1
resources/views/home/index.blade.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h1>Home</h1>
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user