Did you install two laravel?

|
zack6849 2019-07-15 10:05:53
Well, it says right there class log not found
zack6849 2019-07-15 10:06:02
You probably did log:: but meant Log::
zack6849 2019-07-15 10:06:10
Second this is php, not python
zack6849 2019-07-15 10:06:26
If you’re googling for solutions in python you’re going to have a hell of a time figuring out the issue lmao
m 2019-07-15 10:17:02
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?

2019-07-15 10:24:56
zack6849 2019-07-15 10:06:10
Second this is php, not python

I know am just looking for python channels
I know this is php

mhd_arffnn 2019-07-15 10:31:12
hi can we extends current models and use different connection?
loveycom 2019-07-15 11:15:37
m 2019-07-15 10:17:02
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?

That means $call is not an object. Check the datatype of $call

loveycom 2019-07-15 11:16:08
Or ensure that $call is not empty/null/undefined
m 2019-07-15 11:29:08
loveycom 2019-07-15 11:16:08
Or ensure that $call is not empty/null/undefined

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’));

}

loveycom 2019-07-15 11:30:31
Are you sure dd($call) returns object?
m 2019-07-15 11:45:55
loveycom 2019-07-15 11:30:31
Are you sure dd($call) returns object?

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?

loveycom 2019-07-15 11:50:26
From this call is an array collection
m 2019-07-15 11:50:57
loveycom 2019-07-15 11:50:26
From this call is an array collection

Now considering this dd
How do I change my codes?

loveycom 2019-07-15 11:54:00
Inside your controller index, do this after $calls = Call::all();

dd($calls[0]->id).

Let’s see if truly id exist

m 2019-07-15 11:54:53
loveycom 2019-07-15 11:54:00
Inside your controller index, do this after $calls = Call::all();

dd($calls[0]->id).

Let’s see if truly id exist

1
show

m 2019-07-15 11:56:53
loveycom 2019-07-15 11:54:00
Inside your controller index, do this after $calls = Call::all();

dd($calls[0]->id).

Let’s see if truly id exist

laravel_discuss-9384.jpg

loveycom 2019-07-15 11:59:05
OK.
loveycom 2019-07-15 11:59:51
That means everything is fine with your data
Prakash D 2019-07-15 12:00:26
laravel_discuss-9387.jpg

Prakash D 2019-07-15 12:00:39
How to solve this bro
loveycom 2019-07-15 12:04:55
m 2019-07-15 11:56:53

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

ErgashevXurshid 2019-07-15 12:05:35
loveycom 2019-07-15 12:04:55
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

$calls is empty

ErgashevXurshid 2019-07-15 12:06:19
loveycom 2019-07-15 12:04:55
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

Ohh sorry🙈

loveycom 2019-07-15 12:07:15
ErgashevXurshid 2019-07-15 12:05:35
$calls is empty

It’s not my problem, just explaining to someone.

However, $calls is not empty but $call is because he did not declare $call.

ErgashevXurshid 2019-07-15 12:08:34
loveycom 2019-07-15 12:07:15
It’s not my problem, just explaining to someone.

However, $calls is not empty but $call is because he did not declare $call.

Yeah 👍👍👍

loveycom 2019-07-15 12:10:15
Prakash D 2019-07-15 12:00:26

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.

m 2019-07-15 12:10:50
loveycom 2019-07-15 12:04:55
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

no.error

Trying to get property ‘id’ of non-object (View:

loveycom 2019-07-15 12:11:49
Did you do what I asked you to do in your blade? Let me see your blade.
loveycom 2019-07-15 12:16:06
You need to understand how collections works.

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.

loveycom 2019-07-15 12:22:26
I have seen your code. I have some questions: I can’t find where you called item.blade.php
loveycom 2019-07-15 12:22:39
Either in controller or view
SySyPhuS79 2019-07-15 12:22:42
Hi all… I migrate a laravel voyager project to another machine. All works but dashboard widgets don’t. Someone can help me? I just try all clear artisan command
loveycom 2019-07-15 12:23:55
SySyPhuS79 2019-07-15 12:22:42
Hi all… I migrate a laravel voyager project to another machine. All works but dashboard widgets don’t. Someone can help me? I just try all clear artisan command

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?

SySyPhuS79 2019-07-15 12:25:23
Hi loveycom, I just inspect and all ok. Widgets are feature of Voyager
loveycom 2019-07-15 12:29:38
SySyPhuS79 2019-07-15 12:25:23
Hi loveycom, I just inspect and all ok. Widgets are feature of Voyager

Oh. Ok. Anyway, I have not used voyager before.

loveycom 2019-07-15 12:29:59
Where did you get $call from in your item.blade.php? Based on the code you sent to me, $call is undefined hence you cannot get property id of non object.

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

m 2019-07-15 13:05:36
loveycom 2019-07-15 12:29:59
Where did you get $call from in your item.blade.php? Based on the code you sent to me, $call is undefined hence you cannot get property id of non object.

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❤️

loveycom 2019-07-15 13:24:51
yeah
daemon_coder 2019-07-15 13:54:09
laravel_discuss-9408.jpg
hello guys, i get this error alway when trying to install any package via composer. any hint?
skys215 2019-07-15 13:57:55
What is your laravel version
daemon_coder 2019-07-15 13:58:38
5.7
espari 2019-07-15 13:59:16
daemon_coder 2019-07-15 13:54:09
hello guys, i get this error alway when trying to install any package via composer. any hint?

php -v ?

daemon_coder 2019-07-15 14:00:16
7.2
espari 2019-07-15 14:02:41
daemon_coder 2019-07-15 14:00:16
7.2

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.*”

daemon_coder 2019-07-15 14:06:27
laravel_discuss-9414.jpg
sorry my php version is 7.3. seems it auto updated.
espari 2019-07-15 14:12:32
daemon_coder 2019-07-15 13:54:09
hello guys, i get this error alway when trying to install any package via composer. any hint?

cppy an past text in box red

skys215 2019-07-15 14:22:31
Did you install two laravel?
daemon_coder 2019-07-15 14:23:05
espari 2019-07-15 14:12:32
cppy an past text in box red

Your requirements could not be resolved to an installable set of packages.

daemon_coder 2019-07-15 14:23:26
skys215 2019-07-15 14:22:31
Did you install two laravel?

two laravel? on my server?

|