Untitled
raw download clone
TEXT
views 14
,
size 299 b
if(auth()->user()->hasRole(['admin', 'student', 'company-worker', 'university-worker'])) {
	...
} else {
	return response([
                'status' => 'error',
                'data' => null,
                'message' => "Nie masz uprawnieĊ„!"
            ], Response::HTTP_UNAUTHORIZED);
}
close fullscreen
Login or Register to edit or fork this paste. It's free.