template for landing page and routes
This commit is contained in:
@@ -53,6 +53,19 @@ class LoginController extends Controller
|
||||
'redirectToProvider']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Landing page function
|
||||
*
|
||||
* @return view
|
||||
*/
|
||||
public function landingPage() {
|
||||
if(Auth::check()) {
|
||||
return redirect('/dashboard');
|
||||
}
|
||||
|
||||
return view('landing.ladning');
|
||||
}
|
||||
|
||||
/**
|
||||
* Logout function
|
||||
*
|
||||
|
||||
4
resources/views/landing/landing.blade.php
Normal file
4
resources/views/landing/landing.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
@extends('layout.b4')
|
||||
@section('content')
|
||||
<!-- Display page for logging into the site -->
|
||||
@endsection
|
||||
@@ -14,9 +14,7 @@
|
||||
/**
|
||||
* Unsecure Display pages
|
||||
*/
|
||||
Route::get('/', 'Hauling\HaulingController@displayForm')->name('/');
|
||||
Route::post('/', 'Hauling\HaulingController@displayFormResults');
|
||||
Route::get('/display/quotes', 'Hauling\HaulingController@displayQuotes')->name('quotes');
|
||||
Route::get('/', 'Auth\LoginController@landingPage')->name('/');
|
||||
|
||||
Route::group(['middleware' => ['auth']], function(){
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user