public dash and view counting

This commit is contained in:
2018-07-29 11:52:29 +02:00
parent f77b1789fa
commit a79b5ae7d8
37 changed files with 415 additions and 663 deletions
+10 -5
View File
@@ -5,15 +5,20 @@ require "login.php";
Route::get('/about/terms', function () {
return view('about.terms');
});
})->name('terms');
Route::get('/about/privacy', function () {
return view('about.privacy');
});
})->name('privacy');
Route::get('/', function () {
return view('welcome');
});
Route::get('/', 'DashController@view')->name('dash');
// redirect home to user home
Route::get('/home', function () {
if (guest()) return redirect('/');
return redirect(route('profile.view', user()->name));
})->name('home');
Route::group(['middleware' => 'auth'], function () {
// Table resource