Skip to content

Commit

Permalink
Add default home page
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Mar 4, 2019
1 parent a90fc52 commit 4ad289c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 100 deletions.
19 changes: 19 additions & 0 deletions app/Http/Controllers/Home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class Home extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request)
{
return view('home');
}
}
2 changes: 1 addition & 1 deletion app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
protected $namespace = '';

/**
* Define your route model bindings, pattern filters, etc.
Expand Down
14 changes: 14 additions & 0 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@extends('ui::layouts.app')

@section('content')
<div style="display: flex; min-height: 600px; align-items: center; justify-content: center; flex-direction: column">
<h1 class="ui header" style="font-size: 5em; font-weight: 100; letter-spacing: .15em">
Home Sweet Home
</h1>

<div>
Check file <code class="ui label">{{ \App\Http\Controllers\Home::class }}</code> to edit this page.
</div>

</div>
@endsection
99 changes: 0 additions & 99 deletions resources/views/welcome.blade.php

This file was deleted.

1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
*/

Route::redirect('/', 'auth/login');
Route::get('home', \App\Http\Controllers\Home::class)->name('home');

0 comments on commit 4ad289c

Please sign in to comment.