Hi someone know why laravel comment this code?

|
fsalesb 2020-10-23 17:55:18
@foreach($aguardando as $value1)
@foreach($value1->participante as $item)
<img class=”avatar” src=”{{ asset($item->perfilImagem) }}” title=”Participante”>
@endforeach
@endforeach
skys215 2020-10-23 17:59:38
Enigm3tic 2020-10-23 16:11:45
Error is not showing in logs

then you must let it show error
otherwise you will face same problem in the future and you still don’t know what the error is

skys215 2020-10-23 18:02:29
fsalesb 2020-10-23 17:55:18
@foreach($aguardando as $value1)
@foreach($value1->participante as $item)
<img class=”avatar” src=”{{ asset($item->perfilImagem) }}” title=”Participante”>
@endforeach
@endforeach

dump between two foreach

fsalesb 2020-10-23 18:03:08
I did, but still
skys215 2020-10-23 18:11:18
fsalesb 2020-10-23 18:03:08
I did, but still

I mean see what you got

skys215 2020-10-23 18:11:50
dump value1
fsalesb 2020-10-23 18:11:58
okay
2020-10-23 18:21:37
* No Context Humans *
@sut_tw
Enigm3tic 2020-10-23 18:30:19
skys215 2020-10-23 17:59:38
then you must let it show error
otherwise you will face same problem in the future and you still don’t know what the error is

I hàve enable error logs in PHP setting..even the it’s not showing

Enigm3tic 2020-10-23 18:30:30
In hostinger
SIVASIVA 2020-10-23 18:32:40
Put try catch for that query and error reporting E_Alll
SIVASIVA 2020-10-23 18:32:54
Like that syntax is there check once
Parsa212 2020-10-23 18:48:39
laravel_discuss-56178.jpg

Parsa212 2020-10-23 18:49:57
Hello guys,
I have a weird problem
My pages are getting 60 queries which most of them are just repetition.
Parsa212 2020-10-23 18:50:41
Parsa212 2020-10-23 18:48:39

When I do this
laravel debug bar is showing these 2 queries more than 5 times logged in the queries tab
but I actually wrote it one time in this provider.

DesolatorMagno 2020-10-23 18:51:24
That is right, and a usual error.
Parsa212 2020-10-23 18:51:47
What’s the solution?
DesolatorMagno 2020-10-23 18:52:22
laravel_discuss-56183.jpg
Here you tell it that do it in any view.
DesolatorMagno 2020-10-23 18:52:33
Check how many views are loading in the debugbar.
Parsa212 2020-10-23 18:53:13
Yeah they are exactly same amount as loaded views
DesolatorMagno 2020-10-23 18:53:33
Yes, now you kinda know what is the problem.
Parsa212 2020-10-23 18:53:43
What should I do if I want to share a variable through all views but also have access to Auth::user()
Parsa212 2020-10-23 18:54:31
Because sessions are just loaded after boot process
Parsa212 2020-10-23 18:54:46
Maybe I should use a middleware
DesolatorMagno 2020-10-23 18:55:07
laravel_discuss-56190.jpg
You really need it in every view?
DesolatorMagno 2020-10-23 18:55:45
You are not thinking about the problem, before searching solution
Parsa212 2020-10-23 18:55:49
hmm not exactly. Just in header
DesolatorMagno 2020-10-23 18:56:03
Them, why you need it in every view?
Parsa212 2020-10-23 18:56:23
You are right, I was mistaken
Parsa212 2020-10-23 18:56:34
Only one view needs it
DesolatorMagno 2020-10-23 18:57:05
Right, so now you need to make it available in that specific view.
Parsa212 2020-10-23 18:57:16
Thanks alot
DesolatorMagno 2020-10-23 18:57:21
https://laravel.com/docs/8.x/views#attaching-a-composer-to-multiple-views
DesolatorMagno 2020-10-23 18:57:42
NP
Ankit2103 2020-10-23 19:59:36
laravel_discuss-56201.jpg

Ankit2103 2020-10-23 20:00:19
laravel_discuss-56202.jpg

Ankit2103 2020-10-23 20:00:32
Ankit2103 2020-10-23 19:59:36

Solve this plzzz

berto309 2020-10-23 20:09:37
berto309 2020-10-23 15:16:24
Hello developers. Please can I get any article on how to ssh into my AWS RDS using Beanstalk with HeidiSQL.
Steps on how to do that is appreciated.

Any help please

2020-10-23 20:41:08
Ankit2103 2020-10-23 20:00:32
Solve this plzzz

Did you add encytpe=”multipart/form-data” in form tag

Ankit2103 2020-10-23 20:41:35
2020-10-23 20:41:08
Did you add encytpe=”multipart/form-data” in form tag

Yes

Ankit2103 2020-10-23 20:42:18
Problem is that when I submit form without inserting image
2020-10-23 20:45:17
Try dd($request->file(‘image’)):
2020-10-23 20:49:52
Ankit2103 2020-10-23 20:42:18
Problem is that when I submit form without inserting image

Try it in if statement

israa2912 2020-10-23 20:54:07
hi, what the best way to build filter API to use it in the application, Ex. filter the products by [price, city, size, category ] , the query builder is fine but I ask what the best way
datlechin 2020-10-23 20:55:08
Uncaught TypeError: $(…).DataTable is not a function
TheFeLuM 2020-10-23 21:11:17
laravel_discuss-56216.jpg
hi someone know why laravel comment this code ?
TheFeLuM 2020-10-23 21:12:03
is section token by Yield
2020-10-23 21:14:00
TheFeLuM 2020-10-23 21:11:17
hi someone know why laravel comment this code ?

Laravel do nothing untill you tell it to do🤔

2020-10-23 21:14:24
What it does automatically is logging 👻
TheFeLuM 2020-10-23 21:14:33
laravel_discuss-56220.jpg

|