Hi, does anyone knows, whether there is an open source woocommerce like only api in laravel?

|
Candra 2022-08-11 21:07:37
#ask who can teach me all frontend and backend framework? Best practice
Tererai Mugova 2022-08-12 01:30:00
hatsushiroyuki 2022-08-11 20:46:53
The loadView method can’t statically called, you have to instantiate them.

$pdf = new Pdf();
$pdf->loadView(‘view_name’);

Or use the dompdf facade, the dompdf docs has a nice clear example

Hazar_Orabi 2022-08-12 05:45:49
Hi
I have 2 table users and post
User has many posts
How insert user and many posts in one instruction in api please
Nak 2022-08-12 06:06:10
Hazar_Orabi 2022-08-12 05:45:49
Hi
I have 2 table users and post
User has many posts
How insert user and many posts in one instruction in api please

Please specify exactly what you want to do…?

Hazar_Orabi 2022-08-12 06:15:24
I want create one user and many posts in one instruction
Hazar_Orabi 2022-08-12 06:15:58
Nak 2022-08-12 06:06:10
Please specify exactly what you want to do…?

..

thorefinn 2022-08-12 07:15:38
Hazar_Orabi 2022-08-12 06:15:24
I want create one user and many posts in one instruction

Bro what’s your native language?
Cause your English sucks

thorefinn 2022-08-12 07:15:56
Hazar_Orabi 2022-08-12 06:15:24
I want create one user and many posts in one instruction

I think you need one to many relationship

thorefinn 2022-08-12 07:16:24
Hazar_Orabi 2022-08-12 06:15:24
I want create one user and many posts in one instruction

Make user table
And give reference to the post table of user

dheniy 2022-08-12 07:36:11
laravel_discuss-133214.jpg
hi, i try to change color text but it’s not working, anyone can help me?
thank you
dheniy 2022-08-12 07:36:12
laravel_discuss-133216.jpg

dheniy 2022-08-12 07:36:12
laravel_discuss-133215.jpg

Web Developer 2022-08-12 09:47:00
dheniy 2022-08-12 07:36:11
hi, i try to change color text but it’s not working, anyone can help me?
thank you

when you are trying to change color?

dheniy 2022-08-12 09:48:39
Web Developer 2022-08-12 09:47:00
when you are trying to change color?

now

gogeta21 2022-08-12 10:16:18
Hi, does anyone knows, whether there is an open source woocommerce like only api in laravel??
Ohannesburg 2022-08-12 10:16:48
dheniy 2022-08-12 07:36:11
hi, i try to change color text but it’s not working, anyone can help me?
thank you

console log the variables to check if they are matching

dheniy 2022-08-12 10:24:27
Ohannesburg 2022-08-12 10:16:48
console log the variables to check if they are matching

laravel_discuss-133222.jpg

Laradev 2022-08-12 11:19:42
hatsushiroyuki 2022-08-11 20:46:53
The loadView method can’t statically called, you have to instantiate them.

$pdf = new Pdf();
$pdf->loadView(‘view_name’);

this still doesnt work

e_yavgel 2022-08-12 12:21:36
Laradev 2022-08-11 20:00:43
My controller

show your use statement

e_yavgel 2022-08-12 12:23:39
Laradev 2022-08-11 20:00:43
My controller

It should be like:

use BarryvdhDomPDFFacadePdf;

$pdf = Pdf::loadView(‘pdf.invoice’, $data);

e_yavgel 2022-08-12 12:24:12
Laradev 2022-08-11 20:22:48
I now get this?

Pdf instead of PDF ))

Laradev 2022-08-12 12:26:19
e_yavgel 2022-08-12 12:23:39
It should be like:

use BarryvdhDomPDFFacadePdf;

$pdf = Pdf::loadView(‘pdf.invoice’, $data);

Thanks I cracked it, all along I’ve been loading css classes, bootstrap, that’s what caused the error, there’s no error in the code, it’s been css all along

Mk_123656 2022-08-12 12:35:35
Hi all
Can you please help me
I want to connect live database in my local system.
Web Developer 2022-08-12 12:36:53
yess
Mk_123656 2022-08-12 12:37:17
How
Mk_123656 2022-08-12 12:37:28
It is possible?
Mk_123656 2022-08-12 12:39:18
Could not connect to the database.  Please check your configuration. error:PDOException: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond in C:xampphtdocscoach_systemvendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.php:70
Mk_123656 2022-08-12 12:39:34
This is error
Web Developer 2022-08-12 12:42:41
check dm
e_yavgel 2022-08-12 12:45:01
Mk_123656 2022-08-12 12:39:18
Could not connect to the database.  Please check your configuration. error:PDOException: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond in C:xampphtdocscoach_systemvendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.php:70

Run DB on your XAMP or/and set db connection data to your .env file

Mk_123656 2022-08-12 12:57:44
Yes I do that
Mk_123656 2022-08-12 12:57:59
But not work
Mk_123656 2022-08-12 13:01:19
Web Developer 2022-08-12 12:42:41
check dm

Ok

Edifice_Solutions 2022-08-12 13:39:23
I have and object

Available ={ a, b, c, d, e }

Also another $exist = {a, b,c}

How do I get all values that are in Available and not in $exist

??

arsangamal 2022-08-12 13:44:48
Edifice_Solutions 2022-08-12 13:39:23
I have and object

Available ={ a, b, c, d, e }

Also another $exist = {a, b,c}

How do I get all values that are in Available and not in $exist

??

Use the array_intersect function to get the elements that are common between the two arrays

And then remove them from the first array using array_diff

|