ErrorException
PHP 8.1.2-1ubuntu2.209.52.19
foreach() argument must be of type array|object, null given
resources / views / resume2.blade.php: 341
                                            <span class="title-pdf">Chet tilllar</span>
                                            <hr />
                                            <ul>
                                                @foreach ($student->student_languages ?: [] as $lang)
                                                    <li>
                                                        {{ $lang->language?->name }}
                                                    </li>
                                                @endforeach
                                            </ul>
                                        </div>
                                    @endif
                                    <div class="laguage-content-pdf">
                                        <span class="title-pdf">Sevimli mashg'ulotlar</span>
                                        <hr />
                                        <ul>
                                            @foreach (json_decode($student->favorites ?: '[]') as $favorite)
                                                <li>
                                                    {{ $favorite }}
                                                </li>
                                            @endforeach
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <img class="logo-pdf" src="{{ convertBase64(asset('resume/profi-logo-light.png')) }}"
                                alt="" />
                        </div>
                    </td>
                    <td class="td-2-pdf">
                        <div class="box-2-pdf">

App

Routing

Controller
App\Http\Controllers\Student\StudentResumeController@show2
Middleware
  • web

Request

https://api-student.eduni.uz/career/students/resume/3068/view
GET
curl "https://api-student.eduni.uz/career/students/resume/3068/view" \
   -X GET \
   -H 'user-agent: GuzzleHttp/7' \
   -H 'host: api-student.eduni.uz' \
   -H 'connection: close' \
   -H 'x-forwarded-port: 443' \
   -H 'x-forwarded-proto: https';

Browser

GuzzleHttp/7

Headers

user-agent
GuzzleHttp/7
host
api-student.eduni.uz
connection
close
x-forwarded-port
443
x-forwarded-proto
https

Body

[]

Context

Versions

Php Version
8.1.2-1ubuntu2.20
Laravel Version
9.52.19
Laravel Locale
uz
Laravel Config Cached
false
App Debug
true
App Env
local

Custom

Context

View
{
    "view": "/var/www/www-root/data/www/eduni/api/api-student.eduni.uz/resources/views/resume2.blade.php",
    "data": []
}
7:39:08 PM
Runtime 30.24ms
Connection pgsql
select * from "students" where (exists (select * from "references" where "students"."student_status_id" = "references"."id" and "code" = 11 and "table_name" = student-statuses)) and "students"."id" = 3068 limit 1
7:39:08 PM
Runtime 1ms
Connection pgsql
select * from "student_experiences" where "student_experiences"."student_id" in (3068)
7:39:08 PM
Runtime 0.84ms
Connection pgsql
select * from "student_achievements" where "type" = language and "student_achievements"."student_id" in (3068)
7:39:08 PM
Runtime 0.72ms
Connection pgsql
select * from "student_studies" where "student_studies"."student_id" in (3068)
7:39:08 PM
Runtime 0.48ms
Connection pgsql
select * from "student_achievements" where "type" = new-achievements and "student_achievements"."student_id" in (3068)
7:39:09 PM
Runtime 1.38ms
Connection pgsql
select * from "regions" where "regions"."id" = 7 and "regions"."id" is not null limit 1
7:39:09 PM
Runtime 1.19ms
Connection pgsql
select * from "translates" where "translates"."field_id" = 7 and "translates"."field_id" is not null and "table_name" = regions and "language_url" = uz
7:39:09 PM
Runtime 0.8ms
Connection pgsql
select * from "districts" where "districts"."id" = 94 and "districts"."id" is not null limit 1
7:39:09 PM
Runtime 0.56ms
Connection pgsql
select * from "translates" where "translates"."field_id" = 94 and "translates"."field_id" is not null and "table_name" = districts and "language_url" = uz