I use this laravel query in my code :
$teamRoles = TeamMembers::where('is_active',config('constants.status.enable'))
->get();
dd($teamRoles);
I don't know why this result return HTTP ERROR 500 but when I use ->find() or ->first() instead of ->get() that works fine.
The problem was for php memory size; I change memory_size in php.ini and it solve.