mercredi 6 février 2019

After moving to another page Auth User NULL

I all ready checked all similar questions and there is no solutions that i need.

I am using Laravel 5.7 with react. All view data is via ajax calls. The problem is, when i login in to CRM auth user exists, but when i moving to another page or some page in menu, auth user become NULL.

I all ready checked couple of answers and solution that i found was, to wrap all routs inside middleware web like this:

Route::group(['middleware' => 'web'], function() {
    Route::get('orders', 'HomeController@ordersList');
    Route::get('customers', 'HomeController@customersList');
    Route::get('agents', 'HomeController@agentsList');
    Route::get('agent-info', 'HomeController@agentInfo');
    Route::get('customer-info', 'HomeController@customerInfo');
    Route::get('order-details', 'OrdersController@showOrderInfo');
    Route::get('messages', 'MessageController@index');
});

This is not helping, the problem still the same. Thank you for help!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire