laravel login refresh page

My laravel project doesn`t working on the hosting.But everything works perfectly on the local server(

When i switch to mysite.com, the index page “login” and enter the data in login form, tpage just refreshed

At the same time, if I go to mysite.com/register, I will be able to register a new user and write this data to the Users table in my database

I try make routes for test

Route::get('/test', function(){
  return User::All();

//this returned all users in DB(ill check connection with my DB)

});
Route::get('/test', function(){
  $user = Auth::user();
 print_r($user);

//this returned NULL

});

I understand the Auth::login function writes the authenticated user to a session and fills the memoer_token field into the database in the user table. In the table itself token is written, but in the session nothing is written.

But idk how to fix it, if it`s true