Someone already tried laravel octane on aws lambda with bref?

|
haqehs 2021-08-17 16:16:38
Rao Aadil 2021-08-17 13:22:03
i am not getting response how do i check if the email is success?

put the else part also…

haqehs 2021-08-17 16:18:17
kingsclan77 2021-08-17 16:15:09
Can anyone help me with this:

I want to get count of total number of users who are having role as vendor via eloquent

I have 3 tables : users, roles, and role_users(pivot table)

Any help is much appreciated..

go through Laravel many-to-many relationship video…

artyomzp 2021-08-17 16:19:19
kingsclan77 2021-08-17 16:15:09
Can anyone help me with this:

I want to get count of total number of users who are having role as vendor via eloquent

I have 3 tables : users, roles, and role_users(pivot table)

Any help is much appreciated..

User::whereHas(‘roles’, function($q) {$q->where(‘name’, ‘vendor’)})->count();

kingsclan77 2021-08-17 16:34:38
artyomzp 2021-08-17 16:19:19
User::whereHas(‘roles’, function($q) {$q->where(‘name’, ‘vendor’)})->count();

I used your code but got error

kingsclan77 2021-08-17 16:35:01
laravel_discuss-91895.jpg

kingsclan77 2021-08-17 16:35:30
I used it in this way
kingsclan77 2021-08-17 16:36:17
laravel_discuss-91897.jpg

kingsclan77 2021-08-17 16:36:29
But getting this error
artyomzp 2021-08-17 16:36:52
kingsclan77 2021-08-17 16:34:38
I used your code but got error

maybe because you doesn`t have such relation?)

artyomzp 2021-08-17 16:37:04
in model user
artyomzp 2021-08-17 16:37:54
https://laravel.com/docs/8.x/eloquent-relationships#querying-relationship-existence
NanoCellMusic 2021-08-17 16:37:55
kingsclan77 2021-08-17 16:36:17

send a screen shot of your user model

kingsclan77 2021-08-17 16:37:57
laravel_discuss-91903.jpg

kingsclan77 2021-08-17 16:38:13
I sent
NanoCellMusic 2021-08-17 16:38:56
chage public function getUserRole() to public function roles()
kingsclan77 2021-08-17 16:39:45
Ok
NanoCellMusic 2021-08-17 16:40:01
you are tring to use a mutator to set a relation which is wrong
kingsclan77 2021-08-17 16:40:46
I’m sorry, i don’t know what is mutator I’m new in laravel
NanoCellMusic 2021-08-17 16:42:40
dont worry, when you ae setting up relations just use the name of the relation you are making so user to roles you would call roles().

role to users would be users()

NanoCellMusic 2021-08-17 16:42:57
please send a screen shot of your role model so we can see how you set this up
kingsclan77 2021-08-17 16:43:12
Ok sure
kingsclan77 2021-08-17 16:51:13
laravel_discuss-91914.jpg

kingsclan77 2021-08-17 16:51:52
As you said i corrected this is it fine now
NanoCellMusic 2021-08-17 16:52:02
ok good, try now
kingsclan77 2021-08-17 16:52:08
Ok
Marvixino 2021-08-17 16:52:10
Anyone can help with Nginx?
I have api.site.com & site.com, the api is behind reverse proxy, my problem when a request comes site.com, the requester host showing api.site.com … how solve it?
This is the conf.

location / {
proxy_pass http://api:3000;
proxy_http_version 1.1;
proxy_set_header Connection ‘upgrade’;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}

kingsclan77 2021-08-17 17:06:27
NanoCellMusic 2021-08-17 16:52:02
ok good, try now

Its working, much thanks to you and @Artyom Serdyuk,
You are intelligent and technically strong 😊😊

NanoCellMusic 2021-08-17 17:06:56
kingsclan77 2021-08-17 17:06:27
Its working, much thanks to you and @Artyom Serdyuk,
You are intelligent and technically strong 😊😊

no problem, glad it works

Rahul Kothari 2021-08-17 17:18:10
Rahul Kothari:
I use this query and it will return me null array

But when I execute this query on xampp then it will return me the correct value

anyone have knowledge of yajra datatable

Rahul Kothari 2021-08-17 17:18:23
laravel_discuss-91924.jpg

sbruder 2021-08-17 18:13:34
someone already tried laravel octane on aws lambda with bref?
fasabbi 2021-08-17 20:08:55
any laravel 8 developer here?
MutalievUtkirbek 2021-08-17 20:10:17
fasabbi 2021-08-17 20:08:55
any laravel 8 developer here?

all of us

fasabbi 2021-08-17 20:11:41
can anyone help me personally?
i try to learn but i got stuck
.
i want a job in laravel but don’t know what to do!
BodyanWA 2021-08-17 20:13:26
fasabbi 2021-08-17 20:11:41
can anyone help me personally?
i try to learn but i got stuck
.
i want a job in laravel but don’t know what to do!

you can look up requirements for the position to which you’d want to apply and stem from it

|