This commit is contained in:
2018-11-02 07:13:57 -05:00
parent 2cc03cf30a
commit bd59539de0
3 changed files with 8 additions and 2 deletions

View File

@@ -6,5 +6,7 @@ use Illuminate\Http\Request;
class FleetsController extends Controller class FleetsController extends Controller
{ {
// public function __construct() {
$this->middleware('auth');
}
} }

View File

@@ -13,6 +13,10 @@ use App\Library\MoonCalc;
class MoonsController extends Controller class MoonsController extends Controller
{ {
public function __construct() {
$this->middleware('auth');
}
/** /**
* Function to display the moons and pass data to the blade template * Function to display the moons and pass data to the blade template
*/ */

View File

@@ -14,6 +14,6 @@ class Authenticate extends Middleware
*/ */
protected function redirectTo($request) protected function redirectTo($request)
{ {
return route('/login'); return route('/');
} }
} }