hi can we extends current models and use different connection?
How do I change my mind?
How do I change my codes?
You are running an app that is not written by you, right?
Someone can help me?
I think widgets are front end related right?
Did you install two laravel?
Trying to get property ‘id’ of non-object
This code:
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
Can you help me?
I know am just looking for python channels
I know this is php
Trying to get property ‘id’ of non-object
This code:
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
Can you help me?
That means $call is not an object. Check the datatype of $call
data store in database
but donot show in in list or main page
with this error
Trying to get property ‘id’ of non-object (View: C:xampphtdocseventresourcesviewsadmincallsitem.blade.php) (View: C:xampphtdocseventresourcesviewsadmincallsitem.blade.php)
and blade item:
<tr>
<td>{{ $social->id }}</td>
<td>{{ $social->link }}</td>
<td>{{ $social->icon }}</td>
<td>{{ $social->name }}</td>
<td>@include(‘admin.socials.operations’,$social)</td>
</tr>
and
controller
public function index()
{
$calls = Call::all();
// dd($calls);
return view(‘admin.calls.index’, compact(‘calls’));
}
public function create()
{
return view(‘admin.calls.create’);
}
public function store(Request $request)
{
call::create($request->all());
return redirect(route(‘calls.index’))->with(‘success’, true);
}
public function show($id)
{
$calls = Call::all();
return view(‘index’, compact(‘calls’));
}
public function edit(Call $call)
{
return view(‘admin.calls.edit’, compact(‘call’));
}
public function update(Request $request, $id)
{
$call = Call::findOrFail($id);
$call->update($request->all());
return redirect(route(‘calls.index’));
}
public function destroy($id)
{
$call = Call::findOrFail($id);
$call->delete();
return redirect(route(‘calls.index’));
}
Collection {#252 ▼
#items: array:5 [▼
0 => Call {#253 ▶️}
1 => Call {#254 ▶️}
2 => Call {#255 ▶️}
3 => Call {#256 ▶️}
4 => Call {#257 ▶️}
]
}
—————————-
I’ve just started
Now considering this dd
How do I change my mind?
Now considering this dd
How do I change my codes?
dd($calls[0]->id).
Let’s see if truly id exist
dd($calls[0]->id).
Let’s see if truly id exist
1
show
dd($calls[0]->id).
Let’s see if truly id exist

Error:
Trying to get property ‘id’ of non-object
This code:
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
Can you help me?
=========+=+=========
To use array of collection, you need to loop through it.
In your blade, do this:
@foreach($calls as $call)
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
@endforeach
Trying to get property ‘id’ of non-object
This code:
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
Can you help me?
=========+=+=========
To use array of collection, you need to loop through it.
In your blade, do this:
@foreach($calls as $call)
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
@endforeach
$calls is empty
Trying to get property ‘id’ of non-object
This code:
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
Can you help me?
=========+=+=========
To use array of collection, you need to loop through it.
In your blade, do this:
@foreach($calls as $call)
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
@endforeach
Ohh sorry🙈
It’s not my problem, just explaining to someone.
However, $calls is not empty but $call is because he did not declare $call.
However, $calls is not empty but $call is because he did not declare $call.
Yeah 👍👍👍
You are running an app that is not written by you, right? Have you followed the instructions given to implement the app? Anyway, run npm install first, ensure that there is storage folder.
Trying to get property ‘id’ of non-object
This code:
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
Can you help me?
=========+=+=========
To use array of collection, you need to loop through it.
In your blade, do this:
@foreach($calls as $call)
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
@endforeach
no.error
Trying to get property ‘id’ of non-object (View:
1. Referring to the result from dd($calls) which shows array of collections, you need to
2. Loop through this, that is why I asked you to write dd($calls[0]->id) and which worked. The 0 that I put in the [] is the index of each object of call in your collection.
3. Hence, to access each call object, you need to loop through the calls collection like this:
foreach ($calls as $call) {
dd($call); //this will show each call object that you need
}
4. Hence in your blade
you need to do what is in step 3 there.
Like this
@foreach($calls as $call)
<tr>
<td>$call->id>
– – – –
</tr>
@endforeach.
THAT IS ALL.
I think widgets are front end related right? Then ensure that all scripts are loaded. I hope you know how to inspect this in browser?
Oh. Ok. Anyway, I have not used voyager before.
Change your item.blade.php to
@foreach ( $calls as $call )
<tr>
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
<td>@include(‘admin.calls.operations’,$call)</td>
</tr>
@endforeach
Change your item.blade.php to
@foreach ( $calls as $call )
<tr>
<td>{{ $call->id }}</td>
<td>{{ $call->call }}</td>
<td>{{ $call->iconcall }}</td>
<td>{{ $call->iconsms }}</td>
<td>@include(‘admin.calls.operations’,$call)</td>
</tr>
@endforeach
Ok❤️

hello guys, i get this error alway when trying to install any package via composer. any hint?
php -v ?
for install laravel 5.8 and packages , needs to php version 7.3
so
update php version or install older version laravel for example:
composer create-project –prefer-dist laravel/laravel blog “5.7.*”

sorry my php version is 7.3. seems it auto updated.
cppy an past text in box red
Your requirements could not be resolved to an installable set of packages.
two laravel? on my server?