public dash and view counting
This commit is contained in:
+10
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user