Have you created the relationship in the product and orders table?

|
Anand Tujare 2022-04-08 10:16:46
Can u please share screenshot of the folder structure of views
poppyhusk 2022-04-08 10:42:08
Rekha M.G 2022-04-08 09:21:51
I need to append. Env file

Use the dotenv package helpers. Its already preinstalled.

Real_Sahandi81 2022-04-08 10:42:21
hey guys
here we have laravel project with mongodb database on ubunto 20.04

http://188.121.123.76/api/shop

please check link and say to me how can i fixed it.
thanks

Jack0150 2022-04-08 10:46:29
Real_Sahandi81 2022-04-08 10:42:21
hey guys
here we have laravel project with mongodb database on ubunto 20.04

http://188.121.123.76/api/shop

please check link and say to me how can i fixed it.
thanks

You need make changes inside driver in database.php file In laravel

Jack0150 2022-04-08 10:46:53
Also need to install packages related to mongo db
Real_Sahandi81 2022-04-08 10:47:28
Jack0150 2022-04-08 10:46:29
You need make changes inside driver in database.php file In laravel

laravel_discuss-114469.jpg

Real_Sahandi81 2022-04-08 10:47:39
configed !
works on local
Jack0150 2022-04-08 10:48:52
Real_Sahandi81 2022-04-08 10:47:39
configed !
works on local

Is it work on local

Real_Sahandi81 2022-04-08 10:49:29
Jack0150 2022-04-08 10:48:52
Is it work on local

Yes
dont work in server. i dont any idea wtf is this

Jack0150 2022-04-08 10:52:10
For server side which step you are following
Jack0150 2022-04-08 10:53:10
Check server side php.ini have mongo db driver installed it or not.
Rekha M.G 2022-04-08 10:57:49
poppyhusk 2022-04-08 10:42:08
Use the dotenv package helpers. Its already preinstalled.

Ok ill check

Rekha M.G 2022-04-08 10:58:15
I need dynamically add db connection name
aminmaharram 2022-04-08 11:11:41
Hi everyone! I need to order by relation column.

So. i did with(‘orders’) and orderBy(‘orders.title’, ‘desc’), but it doesnt work. Do you have any suggestions?

Anand Tujare 2022-04-08 11:12:43
aminmaharram 2022-04-08 11:11:41
Hi everyone! I need to order by relation column.

So. i did with(‘orders’) and orderBy(‘orders.title’, ‘desc’), but it doesnt work. Do you have any suggestions?

Have you created the relationship in the product and orders table ???

Anand Tujare 2022-04-08 11:12:54
If yes then what error are you getting
aminmaharram 2022-04-08 11:13:10
Yes, i have orders table. It has polymorphic relation.
aminmaharram 2022-04-08 11:13:44
Undefined table: 7 ERROR: missing FROM-clause entry for table “orders”
poppyhusk 2022-04-08 11:23:15
Rekha M.G 2022-04-08 10:58:15
I need dynamically add db connection name

You don’t need to change env for this. Use config helper to change or add new keys under ‘connections’ key present inside ‘config/database.php’

Jack0150 2022-04-08 11:46:01
Rekha you Just need to create multiple connections in database.php file nothing else.
Ronnie 2022-04-08 11:54:09
Am having a bugging issue here
Ronnie 2022-04-08 11:54:43
Just I don’t know how best to put it in writing but I will try
Ronnie 2022-04-08 11:56:30
One is do models in LARAVEL do inherit features of their parents
Ronnie 2022-04-08 12:00:06
For instance I have 2 models, who both belong to the user model.i.e the driver, mechanic.
How best should I generate the attributes of these..?
Is it a matter of extending the user model, and then specifying the necessary attributes that are supposed to be owned by each respective model..or something.
Ronnie 2022-04-08 12:00:29
Meanwhile thanks!
SergioGMR 2022-04-08 12:14:18
What kind of attributes?
Maybe you can have a pivot table or something like this and use the @can directive or something like this or in the other hand, could you have a polymorphic relationship.
mahdyfo 2022-04-08 14:11:15
Alexa will be retired soon
senhorY 2022-04-08 14:43:25
laravel_discuss-114499.jpg
Hello. I’m sending through Safari an audio file and when I log $this->file(‘audio’) from the request, I get this
senhorY 2022-04-08 14:44:29
But in my FormRequest rules I’ve got this rule that won’t get validated:
‘audio’ => [‘required’, ‘file’, ‘mimetypes:audio/*,video/*’]
senhorY 2022-04-08 14:47:31
The validation will always fail even though the mimetype matches “audio/*”. Even if I set the validation rule to audio/mp3 also fails.

Any clue?

senhorY 2022-04-08 14:51:37
Only from Safari. Chrome and Firefox both work as expected 😅
2022-04-08 14:55:12
Hi,
How can get backup from our laravel db with click a button?
dharmik4 2022-04-08 15:17:48
laravel_discuss-114504.jpg
how to convert array to string ??
dharmik4 2022-04-08 15:22:20
laravel_discuss-114505.jpg
its return like that
Guudu 😊 2022-04-08 15:24:36
Payload too large
|