mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-01-17 21:28:30 +01:00
Rename home to dashboard
This commit is contained in:
parent
0b6cb4ad31
commit
1830b2cb6e
@ -5,18 +5,8 @@ namespace App\Http\Controllers\App;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Link;
|
||||
|
||||
class HomeController extends Controller
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the application dashboard.
|
||||
*
|
||||
@ -29,7 +19,7 @@ class HomeController extends Controller
|
||||
->limit(10)
|
||||
->get();
|
||||
|
||||
return view('home')
|
||||
return view('dashboard')
|
||||
->with('recent_links', $recent_links);
|
||||
}
|
||||
}
|
@ -25,7 +25,7 @@ class LoginController extends Controller
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/home';
|
||||
protected $redirectTo = '/dashboard';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
|
@ -28,7 +28,7 @@ class RegisterController extends Controller
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/home';
|
||||
protected $redirectTo = '/dashboard';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
|
@ -25,7 +25,7 @@ class ResetPasswordController extends Controller
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/home';
|
||||
protected $redirectTo = '/dashboard';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="container">
|
||||
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item" href="{{ auth()->guest() ? route('front') : route('home') }}">
|
||||
<a class="navbar-item" href="{{ auth()->guest() ? route('front') : route('dashboard') }}">
|
||||
<img src="{{ asset('assets/img/logo_linkace.svg') }}" alt="@lang('linkace.linkace')"
|
||||
width="76" height="28">
|
||||
</a>
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
Route::get('/', function () {
|
||||
if (auth()->check()) {
|
||||
return redirect()->route('home');
|
||||
return redirect()->route('dashboard');
|
||||
}
|
||||
|
||||
return view('welcome');
|
||||
@ -34,10 +34,10 @@ $this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail'
|
||||
$this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
|
||||
$this->post('password/reset', 'Auth\ResetPasswordController@reset');
|
||||
|
||||
Route::get('/home', 'App\HomeController@index')->name('home');
|
||||
|
||||
// Model routes
|
||||
Route::group(['middleware' => ['auth']], function () {
|
||||
Route::get('/dashboard', 'App\DashboardController@index')->name('dashboard');
|
||||
|
||||
Route::resource('categories', 'Models\CategoryController');
|
||||
Route::resource('links', 'Models\LinkController');
|
||||
Route::resource('notes', 'Models\NoteController');
|
||||
|
Loading…
x
Reference in New Issue
Block a user