regsitro de negocio y taller, permisos, panel nuevo de taller

This commit is contained in:
Jose Sanchez
2023-08-16 22:49:30 -04:00
parent 31b2e896ad
commit 5c4b29fce7
21 changed files with 1946 additions and 76 deletions

View File

@@ -14,12 +14,15 @@ class IsUser
* @param \Closure $next
* @return mixed
*/
//AQUI AGREGO LOS DIFERENTES TIPOS DE USUARIOS
public function handle($request, Closure $next)
{
if (Auth::check() &&
(Auth::user()->user_type == 'customer' ||
Auth::user()->user_type == 'seller' ||
Auth::user()->user_type == 'delivery_boy') ) {
Auth::user()->user_type == 'delivery_boy'||
Auth::user()->user_type == 'repair') ) {
return $next($request);
}