debug code for seecend time
This commit is contained in:
@@ -23,8 +23,7 @@ class HarimOfficeController extends Controller
|
||||
$user = auth()->user();
|
||||
$query = Harim::query()
|
||||
->where('state_id','=',HarimStates::Baresi_Imeni_Rah_Tavasot_Daftar_Harim->value)
|
||||
->where('edareh_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->with('expert_description');
|
||||
->where('edareh_shahri_id', '=', $user->edarate_shahri_id);
|
||||
$data = DataTableFacade::run(
|
||||
$query,
|
||||
$request,
|
||||
@@ -81,6 +80,6 @@ class HarimOfficeController extends Controller
|
||||
}
|
||||
public function show(Harim $harim): JsonResponse
|
||||
{
|
||||
return $this->successResponse($harim);
|
||||
return $this->successResponse($harim->load('histories'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user