Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
Remove /home route
Browse files Browse the repository at this point in the history
And now `/products` is the default route
  • Loading branch information
victorhqc committed Aug 6, 2019
1 parent 6f77bc6 commit 2a61c80
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 66 deletions.
16 changes: 0 additions & 16 deletions app/Http/Controllers/HomeController.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/home');
return redirect('/products');
}

return $next($request);
Expand Down
46 changes: 0 additions & 46 deletions resources/views/home.blade.php

This file was deleted.

4 changes: 1 addition & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
|
*/

$router->get('/', 'HomeController@showHome')->name('home');
$router->get('home', 'HomeController@showHome')->name('home');

$router->get('/', 'ProductsController@showProducts')->name('products');
$router->get('products', 'ProductsController@showProducts')->name('products');

/*
Expand Down

0 comments on commit 2a61c80

Please sign in to comment.