How i, m convert code Query to Eloquent?

|
mk824 2020-10-25 22:08:18
what the reson
mk824 2020-10-25 22:08:30
fatal: unable to access URL The requested URL returned error: 403
mk824 2020-10-25 22:08:50
please help me . thank you
k_ankit05 2020-10-25 22:26:30
mehrb0d 2020-10-25 22:05:17
in the first input you forgot:
$todo

At line11?

k_ankit05 2020-10-25 22:27:36
Ok thanks.. it’s working
mehrb0d 2020-10-25 22:33:17
k_ankit05 2020-10-25 22:27:36
Ok thanks.. it’s working

you’re welcome

req98 2020-10-25 22:33:54
Hi
When I insert fake image from hard disk. Saved 0 instead of name of pictures🤔🤔

‘image’ => $faker->image(‘public/storage/images’,640,480, null, false), ];

k_ankit05 2020-10-25 22:36:29
mehrb0d 2020-10-25 22:33:17
you’re welcome

Can u tell me 1 thing.. I’ve created a to-do app.. so i wanted to show the time n date in it that when the task is added or if it’s updated so the time shall be changed and shall show the particular time on whic it was updated

mehrb0d 2020-10-25 22:38:56
k_ankit05 2020-10-25 22:36:29
Can u tell me 1 thing.. I’ve created a to-do app.. so i wanted to show the time n date in it that when the task is added or if it’s updated so the time shall be changed and shall show the particular time on whic it was updated

when you create a migration, timestamp() create two Variable by name:
created_at and updated_at
so in the update function in controller you can get time and set it in “updated_at”

k_ankit05 2020-10-25 22:51:38
Ok..
mehrb0d 2020-10-25 23:18:03
k_ankit05 2020-10-25 22:51:38
Ok..

if you had any problems please let me know to help you

mk824 2020-10-25 23:19:51
im angry
2020-10-25 23:56:33
hi guys
someone can help me ?
how i,m convert code Query to Eloquent ??
tables :
Message
from – to – message
Users
….. avatar, unread //we make this
query :
$users=DB::select(“select users.id , users.name, users.avatar,users.email , count(is_read) as unread
from users LEFT JOIN messages ON users.id=messages.from and is_read=0 and messages.to=”.Auth::id().
” where users.id!=”.Auth::id().” group by users.id,users.name,users.avatar,users.email”);
2020-10-25 23:57:04
laravel_discuss-56562.jpg

DesolatorMagno 2020-10-26 00:15:36
https://twitter.com/laravelphp/status/1319362549217959936

LaravelTwitter
⚠️ Reminder: we will be shutting down the old Laravel Installer servers at the end of the month. Please make sure your “laravel/installer” package that is globally installed on your machine is at version 4.0 or greater. ⚠️
2020-10-26 00:17:58
2020-10-25 23:56:33
hi guys
someone can help me ?
how i,m convert code Query to Eloquent ??
tables :
Message
from – to – message
Users
….. avatar, unread //we make this
query :
$users=DB::select(“select users.id , users.name, users.avatar,users.email , count(is_read) as unread
from users LEFT JOIN messages ON users.id=messages.from and is_read=0 and messages.to=”.Auth::id().
” where users.id!=”.Auth::id().” group by users.id,users.name,users.avatar,users.email”);

i,m dont understand more than

2020-10-26 00:18:09
$users=DB::table(‘users’)->select(‘id’,’name’,’avatar’,’email’)
->addSelect(DB::raw(‘count(is_read) as unread’))
->join(‘messages’, function($join) use ($id) {
$join->on(‘users.id’, ‘=’, ‘messages.from’)
->on(‘is_read’,’=’, 0)
->on(‘messages.to’, ‘=’,$id);
})
->where(‘users.id’, ‘!=’,$id)
->groupBy(‘id’)
->groupBy(‘name’)
->groupBy(‘avatar’)
->groupBy(’email’)
->get();
k_ankit05 2020-10-26 07:12:24
mehrb0d 2020-10-25 23:18:03
if you had any problems please let me know to help you

Can u explain it once more how to do that

k_ankit05 2020-10-26 07:12:43
Can u tell me 1 thing.. I’ve created a to-do app.. so i wanted to show the time n date in it that when the task is added or if it’s updated so the time shall be changed and shall show the particular time on whic it was updated
shaildark 2020-10-26 09:19:46
how to insert record using db facade in postgre table in laravel if i have two connection, mysql and postgre
badralwattar 2020-10-26 09:39:23
Hey guys

Can someone explain to me what does MorphOne relationship means?

badralwattar 2020-10-26 09:39:59
Also MorphMany
And the other Morph relationships
k_ankit05 2020-10-26 09:56:52
k_ankit05 2020-10-26 07:12:43
Can u tell me 1 thing.. I’ve created a to-do app.. so i wanted to show the time n date in it that when the task is added or if it’s updated so the time shall be changed and shall show the particular time on whic it was updated

anything about this??

badralwattar 2020-10-26 11:02:25
k_ankit05 2020-10-26 07:12:43
Can u tell me 1 thing.. I’ve created a to-do app.. so i wanted to show the time n date in it that when the task is added or if it’s updated so the time shall be changed and shall show the particular time on whic it was updated

Use the created_at field in the database

Munish Kumar 2020-10-26 12:38:30
i am update data but not update
LeelaNarasimha 2020-10-26 12:39:20
https://youtu.be/j5Pgaij5T5Y

16. Rendering Content Conditionally using V-if directive in Vuejs | Vue3YouTube
Hi Friends
In this video, we will see how to render the content conditionally using the v-if directive in vuejs.

The code is deployed in my Github account.
https://github.com/leelanarasimha/vue3-course

If you like my video, please subscribe to my channel.

Youtube Page: https://www.youtube.com/c/leelawebdev/
Facebook Page: https://www.facebook.com/leelawebdev
Twitter Page: https://twitter.com/leelanarsimha
Linkedin: https://www.linkedin.com/in/leela-narasimha-reddy-86517948/
GitHub: https://github.com/leelanarasimha
#Vue #Vue3 #Vuejs #leelawebdev

Munish Kumar 2020-10-26 12:39:29
laravel_discuss-56590.jpg

Munish Kumar 2020-10-26 12:39:29
laravel_discuss-56589.jpg

Munish Kumar 2020-10-26 12:39:30
laravel_discuss-56591.jpg

Munish Kumar 2020-10-26 12:39:49
no error show
2020-10-26 12:40:31
Munish Kumar 2020-10-26 12:39:30

Share image not screenshot

Munish Kumar 2020-10-26 12:40:56
ok
Munish Kumar 2020-10-26 12:42:30
laravel_discuss-56595.jpg

Munish Kumar 2020-10-26 12:42:31
laravel_discuss-56596.jpg

Munish Kumar 2020-10-26 12:42:32
laravel_discuss-56597.jpg

Piyushchoubisa 2020-10-26 12:43:05
How can i use badges in yajra
mehrb0d 2020-10-26 14:13:22
Munish Kumar 2020-10-26 12:42:32

I see the problem

mehrb0d 2020-10-26 14:14:15
Munish Kumar 2020-10-26 12:42:30

after line 73 write dd($data); and tell me the output

natghi2010 2020-10-26 14:23:54
$match->winner = $match->team1_goal > $match->team_2goal ? $match->team1_id : $match->team2_id;
natghi2010 2020-10-26 14:24:06
what should this return? team1_id or team2_id?
natghi2010 2020-10-26 14:24:38
team2 goal is higher than team1 goal
natghi2010 2020-10-26 14:26:33
to save line space 🙂
Abel 2020-10-26 14:27:30
laravel_discuss-56609.jpg
besoin d’aide svp
natghi2010 2020-10-26 14:27:48
keeps returning team 1
Abel 2020-10-26 14:28:34
Abel 2020-10-26 14:27:30
besoin d’aide svp

ok

2020-10-26 15:01:21
natghi2010 2020-10-26 14:27:48
keeps returning team 1

Share more
The above code looks code

natghi2010 2020-10-26 15:02:12
laravel_discuss-56641.jpg

natghi2010 2020-10-26 15:02:24
2020-10-26 15:01:21
Share more
The above code looks code

here

2020-10-26 15:06:50
natghi2010 2020-10-26 15:02:12

team1_goal
team_2goal

natghi2010 2020-10-26 15:07:09
shiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiit
|