score:6
According to the error message its clearly saying Attempt to read property (because you are trying to access like $data->name <--OBJECT) on array
and your foreach variable is array. so you will need to access like key value pair.
Use like this in loop-
{{ $data['name'] }}
{{ $data['description'] }}
More Answer
- Attempt to read property "title" on array (Error Exception) Laravel Php
- Attempt to read property "name" on bool laravel 8, variable not transfering to view
- Attempt to read property "name" on array (View: C:\xampp\htdocs\Testing\resources\views\product.blade.php)
- Problem with Laravel Livewire : Attempt to read property "recipes" on array
- Attempt to read property "name" on array
- Attempt to read property "id_tahun" on array
- Attempt to read property "investment_id" on array
- Attempt to read property "name" on null
- Attempt to read property "match_name" on null laravel-8
- Attempt to read property "name" on null in Laravel 8
- Attempt to read property "email" on int - Laravel 8
- unable to read and write htdocs folder in XAMPP
- Attempt to read property on null (Laravel 8) only on POST
- Laravel 8 : Attempt to read property "user_id" on int
- Laravel 8: Attempt to read property "id" on null
- Eloquent relationship:: Attempt to read property "product_price" on null
- I am beginner trying to update status on view table laravel but i am getting controller error that (Attempt to read property "status" on null)
- Trying to access to array in view return Trying to get property of non-object
- show the country name by passing the array index in laravel view
- How to fix tying to get property name in view problem
- Attempt to read property "id" on null Laravel 8 eloquent
- Attempt to read property "title" on null
- Attempt to read property "cat_name" on null || foreach() argument must be of type array|object, null given
- Attempt to read property "password" on null in Laravel
- LARAVEL8 Attempt to read property "POST" Invalid in "Clients Controller"
- Attempt to read property "price" on null in laravel?
- Barryvdh/laravel-domPDF returning Attempt to read property "name" on bool
- Attempt to read property "name" on bool
- Attempt to read property 'avatar' null when register with laravel
- Attempt to read property "id" on null
More answer with same ag
- Laravel Undefined property: LengthAwarePaginator::$id
- Cannot authenticate in custom Laravel test environment (codeception)
- Double foreach loop with where condition in laravel blade
- how to use muiti middleware for routes in laravel 5.7
- Laravel: Converting SQL query, 0 results
- Class with model could not be found in Lumen
- How to solve Illegal offset type on the laravel eloquent?
- get loggedIn user in View Composer not working(Sentinel - Laravel 5.4)
- How to assign value to angular $scope in my blade.php
- laravel excel read file without import to database
- Laravel can I add two update method on a resource controller
- Laravel 5 - Compile String and Interpolate Using Blade API on Server
- Laravel, check if value is in some collection (in blade)
- What is the most optimised way to search a string across all columns in a MySQL table using Laravel Eloquent?
- How to add custom config file to app/config in Laravel 5?
- How to fix Class 'Illuminate\Notifications\Notification' not found?
- laravel, how to get the value of 3 options so if y then yes if n then no if r then rejected
- Add action during login process
- Cannot change rydurham/sentinel default page design in laravel 4.2
- How to get number of days between two date ranges
- Duplicate Data When Select With Eloquent
- LARAVEL : what's the best practice for devide a template like a senior programmer
- Laravel : Search with posted parameters
- PyroCMS 3 problematic install. Problem starts with This form is not secure. Autofill has been turned off
- solution for double text in laravel
- Laravel Eloquent Model Relationship with Condition in Relationship
- Laravel routes with multiple slugs won't work in React
- Problem getting a new token after expiry time lapses in token-based authentication in Laravel
- Laravel Eloquent version of "NOT IN" SQL
- Laravel - Eloquent merge collection with single item
Source:
stackoverflow.com