added front controller
added a controller class to handle what is being served when the browser hits the root directory. very basic to start as it is just a placeholder until it's filled out
This commit is contained in:
parent
a6b63ca551
commit
2420ea193c
2 changed files with 19 additions and 3 deletions
17
app/Http/Controllers/Front/StartController.php
Normal file
17
app/Http/Controllers/Front/StartController.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Front;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class StartController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
return response()->file('../public/index.html');
|
||||
}
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Dash\IndexController;
|
||||
use App\Http\Controllers\Dash\AuthController;
|
||||
use App\Http\Controllers\Front\StartController;
|
||||
use App\Http\Controllers\Theming\ThemeController;
|
||||
|
||||
/*
|
||||
|
@ -16,9 +17,7 @@ use App\Http\Controllers\Theming\ThemeController;
|
|||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
Route::get("/", [StartController::class, 'index']);
|
||||
|
||||
//DASHBOARD
|
||||
|
||||
|
|
Loading…
Reference in a new issue