Hi im new to Laravel and ReactJS, i have a question i think its about Routing. why i always get redirected to localhost:8000/login.
This is my Routes in web.php:
and also where is this refering to?
Route::get('/', 'HomeController@index')->name('home');
My Homecontroller contains the following code:
public function __construct() {
$this->middleware('auth');
}
public function index() {
return view('home');
}
</div>