hypothetical/app/Http/routes.php

48 lines
1.4 KiB
PHP
Raw Normal View History

<?php
Route::group(['middleware' => 'web'], function () {
2016-01-03 23:55:13 -05:00
/*
|--------------------------------------------------------------------------
| Public Routes
|--------------------------------------------------------------------------
*/
Route::get('/', function() {
Head::setTitle('Home');
return view('website.index');
2016-01-03 23:55:13 -05:00
});
2016-01-03 23:55:13 -05:00
Route::get('/contact', function() {
Head::setTitle('Contact');
2016-01-03 23:55:13 -05:00
return view('website.contact');
});
2016-01-03 19:08:53 -05:00
/*
|--------------------------------------------------------------------------
| Post Routes
|--------------------------------------------------------------------------
*/
2016-01-03 23:55:13 -05:00
Route::post('/contact-submit', 'ContactController@postContactSubmit');
Route::post('/subscription-submit', 'SubscriptionController@postSubscriptionSubmit');
2016-01-03 19:08:53 -05:00
2016-01-03 23:55:13 -05:00
/*
|--------------------------------------------------------------------------
| Authentication Routes
2016-01-03 23:55:13 -05:00
|--------------------------------------------------------------------------
*/
Route::auth();
/*
|--------------------------------------------------------------------------
| Dashboard Routes
|--------------------------------------------------------------------------
*/
Route::group(['prefix' => 'dashboard'], function() {
Route::get('/', 'DashboardController@index');
Route::controller('', DashboardController::class);
});
2016-01-03 23:55:13 -05:00
});