Getting field value from another table returns a json collection in Laravel
I am using Laravel orchid package and in layout file, I have this function: protected function columns(): iterable { $org = ”; $employeeDetails = ”; return [ TD::make(‘Userid’, __(‘User Id’)) ->cantHide() ->sort() ->filter(Input::make()), TD::make($employeeDetails, __(‘Employee Name’)) ->filter(Input::make()) ->render(function(DailyAttendance $attendance) { $employeeDetails = Employee::where(’employeeCode’, $attendance->Userid)->first([’employeeName’]); return $employeeDetails; }) ->sort(), ]; } The result is not picking… Read More Getting field value from another table returns a json collection in Laravel