skip to Main Content

Laravel – Attempt to read property "id" on bool (View: D:websiteImageresourcesviewslayout.blade.php), variable not transfering to view

I keep encountering this error on Laravel 8 with PHP 8. Im grabbing the id from the view like so: <li><a href="category/{{$catego->id}}">{{$catego->categories}}</a></li> This then goes to web.php like so: Route::get('category/{id}', [UserController::class, 'categories']); It then goes to the categories function like…

VIEW QUESTION

Laravel – Please help me with my code, What should I do for me to paste the photo using asset in <img src=" ? ">

@foreach ($profiles as $profile) <tr> <td>{{ $profile->id }}</td> <td>{{ $profile->email }}</td> <td>{{ $profile->name }}</td> <td>{{ $profile->age }}</td> <td>{{ $profile->gender }}</td> <td>{{ $profile->position }}</td> <td>{{ $profile->department }}</td> <td>{{ $profile->phone_number }}</td> <td> @if ($profile->images) ** <img src="{{ asset('storage/app/public/'.$profile->images) }}" alt="Profile Image" style="max-width:…

VIEW QUESTION
Back To Top
Search