Невозможно интегрировать unisharp\File Manager с системой входа в систему с несколькими охранниками.Php

Кемеровские программисты php общаются здесь
Гость
Невозможно интегрировать unisharp\File Manager с системой входа в систему с несколькими охранниками.

Сообщение Гость »


I am developing a multi vendor ecommerce website in laravel-10, to upload images in different interface i hav use Unisharp\File Manager, to handle different users like admin and seller i have created different middlewares like admin for admin users and seller for seller users. i have done the following code and still filemanger bring me to the login page.

in web.php

Код: Выделить всё

Route::group(['prefix' => 'filemanager', 'middleware' => ['web','auth:admin']], function () {     \UniSharp\LaravelFilemanager\Lfm::routes(); }); 
in ConfigHandler

Код: Выделить всё

public function userField()     {         // return auth()->id();         if(auth('admin')->check()){             return auth()->user()->id;         }else{             return 'admin';         }     } 
in web.php

Код: Выделить всё

Route::group(['prefix' => 'filemanager', 'middleware' => ['web','auth:admin']], function () {     \UniSharp\LaravelFilemanager\Lfm::routes(); }); 
in ConfigHandler

Код: Выделить всё

public function userField()     {         // return auth()->id();         if(auth('admin')->check()){             return auth()->user()->id;         }else{             return 'admin';         }     } 


Источник: https://stackoverflow.com/questions/781 ... gin-system

Вернуться в «Php»