Koi laravel install krne me help kr skta hai?

|
Kk 2021-05-14 18:55:09
nowodev 2021-05-14 18:54:11
Ohhhh. If you have a foreign key, then do this

Sensor::with(‘devices’)->where(‘id’, ‘test_id’)

Let me try.. I will update soon

Gagandeep 2021-05-14 19:56:50
2021-05-14 16:43:14
U r from india right?

Yeah And U ?

2021-05-14 19:57:38
Gagandeep 2021-05-14 19:56:50
Yeah And U ?

Now I m living in Uganda

sobirjonovs 2021-05-14 19:57:45
Gagandeep 2021-05-14 19:56:50
Yeah And U ?

y, n u?

2021-05-14 19:58:44
sobirjonovs 2021-05-14 19:57:45
y, n u?

Where u from alphabet name

Gagandeep 2021-05-14 20:00:55
2021-05-14 19:57:38
Now I m living in Uganda

Oh Nice

2021-05-14 20:01:06
Gagandeep 2021-05-14 20:00:55
Oh Nice

Yeah

2021-05-14 20:01:28
What are you doing for food?
sobirjonovs 2021-05-14 20:01:42
2021-05-14 19:58:44
Where u from alphabet name

its lazy boy’s alphabet ))

2021-05-14 20:02:22
sobirjonovs 2021-05-14 20:01:42
its lazy boy’s alphabet ))

Its sound good but never understand yet

2021-05-14 20:02:46
Wht u hve read there
2021-05-14 20:03:16
Mr/mrs multiple alphabet
Jay_1 2021-05-14 20:27:28
flyingdragons 2021-05-14 18:09:22
What all data you need from this table. Just the count?

Yes

flyingdragons 2021-05-14 20:27:44
Whats the name of the table
flyingdragons 2021-05-14 20:29:03
Jay_1 2021-05-14 20:27:28
Yes

YourModel::select(DB::raw(‘quantity – total_alloted as likes’))->get();

Jay_1 2021-05-14 20:30:41
But 2 cnno is same so its applicable for both row???
Jay_1 2021-05-14 20:31:30
One common number and get single count ??
flyingdragons 2021-05-14 20:32:37
Okay you mean you wan to group by some column name?
flyingdragons 2021-05-14 20:32:47
Like Office Type
flyingdragons 2021-05-14 20:42:30
Jay_1 2021-05-14 17:39:36
How to count and minus this value and get 2 as result in laravel

YourModel::select(DB::raw(‘sum(quantity – total_alloted) as total_quantity, cnno_’))->groupBy(‘cnno_start)->get();

flyingdragons 2021-05-14 20:43:07
Change your model name (YourModel) and if you want to group by different columnn then change the cnno_start in groupBy
AlaviMostafa 2021-05-14 20:56:40
hi
how can show recovery-code-page of 2fa fortify in seprate page for user
Gagandeep 2021-05-14 21:31:40
2021-05-14 20:01:28
What are you doing for food?

WFH ….. Recklessly

2021-05-14 21:34:10
Gagandeep 2021-05-14 21:31:40
WFH ….. Recklessly

Do be use abuse wrds my boy🤣

Gagandeep 2021-05-14 21:59:27
2021-05-14 21:34:10
Do be use abuse wrds my boy🤣

Work From Home I Said

veddishant 2021-05-14 22:28:12
Guys plz only conversation related to laravel topics,issue help ..
Don’t get notified all user unwanted messages! Plz hope you understand 🙏
sixpeteunder 2021-05-15 00:22:46
nowodev 2021-05-05 17:00:27
The approach I took to do this is not ideal and I know there are better solutions out there.

So on my main table for hostels, there’s an image column.
I have another table for images.
The image model belongsto the hostel model.
The hostel model has many image model.

I also used the image intervention package. So it stores the array of images in the Image table then inserts only one image into the Hostel table.

So in my view, I can decide if I want to show the main image or the arrays

Here are a few ideas…
1. Have a hostels table and an images table with a one to many relationship. (hostel_id field on the images table). Decide that the first image to occur in the images table for a particular hostel should be considered the main one.

2. Have a hostels table and an images table with a one to many relationship. (hostel_id field on the images table). Add an comments field on the images table. Decide that the image having the value “main” (or whatever you want) in the comments field should be considered the main one. Create a UNIQUE constraint between hostel_id and comments to minimise chances of having more than one main image.

nowodev 2021-05-15 01:36:16
sixpeteunder 2021-05-15 00:22:46
Here are a few ideas…
1. Have a hostels table and an images table with a one to many relationship. (hostel_id field on the images table). Decide that the first image to occur in the images table for a particular hostel should be considered the main one.

2. Have a hostels table and an images table with a one to many relationship. (hostel_id field on the images table). Add an comments field on the images table. Decide that the image having the value “main” (or whatever you want) in the comments field should be considered the main one. Create a UNIQUE constraint between hostel_id and comments to minimise chances of having more than one main image.

Thanks man. Will implement one of these.

Jay_1 2021-05-15 06:13:58
flyingdragons 2021-05-14 18:09:22
What all data you need from this table. Just the count?

Thanks bro

justine_chacko 2021-05-15 06:23:04
I need users to pay money every year. If I added a payment gateway how can i check if a user reached an year after last payment.
coming007777 2021-05-15 06:34:26
Koi laravel install krne me help kr skta hai?
g 2021-05-15 06:42:39
coming007777 2021-05-15 06:34:26
Koi laravel install krne me help kr skta hai?

Yes

simon_an 2021-05-15 07:08:53
justine_chacko 2021-05-15 06:23:04
I need users to pay money every year. If I added a payment gateway how can i check if a user reached an year after last payment.

Read about the Carbon package

simon_an 2021-05-15 07:12:10
justine_chacko 2021-05-15 06:23:04
I need users to pay money every year. If I added a payment gateway how can i check if a user reached an year after last payment.

https://carbon.nesbot.com/docs/

simon_an 2021-05-15 07:12:45
Laravel includes carbon package by default, so just look at its usage
|