โ prev | next โ
heartless980 2020-09-10 07:32:00
Any WordPress developer is here …???
CM 2020-09-10 07:41:38
heartless980 2020-09-10 07:32:00
Any WordPress developer is here …???
How can we help
heartless980 2020-09-10 07:43:15
CM 2020-09-10 07:41:38
How can we help
I created plug-in for Divi theme. But my plug-in not work correctly. Plug-in show me to some space after 2slide moved
YashGhantala 2020-09-10 07:43:30
Guys please don’t spam/ask for SHIT in this group….
Disha 2020-09-10 10:27:46
Laravel in how to edit data with image
Mehul_bagda 2020-09-10 10:30:43
I will help you
tanmaya09 2020-09-10 11:38:06
imhajiiii 2020-09-09 08:54:03
yes
Did you notice ? He just helped you to write API.
Avinash 2020-09-10 14:48:05
DataCamp Yearly Subscription on 75% OFF.
Enroll now to save 75%!
http://bit.ly/datacamp-promo
Build Your Data Skills Online.
๐ Learn at your own pace
๐ Short videos + hands-on exercises
๐ Write and run real code in your browser.
Join DataCamp now!
http://bit.ly/datacamp-promo
g0kuaDL 2020-09-10 14:51:58
flyingdragons 2020-09-09 16:50:24
Instead of CK editor you can use Summernote editor it’s really awesome.
Thanks. I will look inyo it
ManojRoy19 2020-09-10 15:09:24

I want to retrieve category id from product_category equal to product id but I wonder that how to achieve this bec I tried to access it by eloquent but not get so let me know how to do it.
ManojRoy19 2020-09-10 15:09:25
ManojRoy19 2020-09-10 15:09:25
Bhuvi100 2020-09-10 15:25:57
ManojRoy19 2020-09-10 15:09:25
You want a product’s categories right?
Bhuvi100 2020-09-10 15:26:08
Explain clearly
ManojRoy19 2020-09-10 15:47:00
Bhuvi100 2020-09-10 15:25:57
You want a product’s categories right?
Yes,I’ve stored category id in product_category table and want to retrieve it into product listing table.
Bhuvi100 2020-09-10 16:33:21
ManojRoy19 2020-09-10 15:47:00
Yes,I’ve stored category id in product_category table and want to retrieve it into product listing table.
$categories=[ ];
$product=Product::find($product_id);
foreach($product->category as $single_category) {
array_push($categories,$single_category); }
Bhuvi100 2020-09-10 16:33:57
$categories will have all the categories that product belongs to
2020-09-10 16:43:35
Hello guys, I am looking for job, I am having 3+ year’s of experience
MonkeyDFeussom 2020-09-10 17:57:02
Hey IM facing a Cors problem when i want my Vue js to communicate with my LAravel
MonkeyDFeussom 2020-09-10 17:57:15
? Anyon
badralwattar 2020-09-10 18:10:52
MonkeyDFeussom 2020-09-10 17:57:02
Hey IM facing a Cors problem when i want my Vue js to communicate with my LAravel
I didnโt understand the problem
MonkeyDFeussom 2020-09-10 18:11:16
Im having Access to fetch at ‘http://localhost/api/order/items/2959’ from origin ‘http://localhost:8000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
badralwattar 2020-09-10 18:11:17
You have a backend server separated from Vuejs app?
MonkeyDFeussom 2020-09-10 18:11:29
badralwattar 2020-09-10 18:11:17
You have a backend server separated from Vuejs app?
yes
badralwattar 2020-09-10 18:11:33
Okay I have faced the same problem before
MonkeyDFeussom 2020-09-10 18:11:39
Yeag
MonkeyDFeussom 2020-09-10 18:11:49
How did you resolved it
berlin5556666 2020-09-10 18:11:52
Hi guys I gonna to find freelancer job
badralwattar 2020-09-10 18:11:58
First you must put your routes in the api.php not web.php
MonkeyDFeussom 2020-09-10 18:12:05
badralwattar 2020-09-10 18:11:58
First you must put your routes in the api.php not web.php
I did
berlin5556666 2020-09-10 18:12:06
Can you help me ?
MonkeyDFeussom 2020-09-10 18:12:20
THe route is in the API
badralwattar 2020-09-10 18:12:20
Second
You have to deploy the laravel code, donโt use the localhost
MonkeyDFeussom 2020-09-10 18:12:42
im on the localhost
badralwattar 2020-09-10 18:12:59
Deploy the code to a server (heroku) so when you access the api routes they are accessible
badralwattar 2020-09-10 18:13:16
badralwattar 2020-09-10 18:12:59
Deploy the code to a server (heroku) so when you access the api routes they are accessible
It worked with me when I did this
MonkeyDFeussom 2020-09-10 18:13:16
they are accessible
MonkeyDFeussom 2020-09-10 18:13:26
ok
badralwattar 2020-09-10 18:13:34
MonkeyDFeussom 2020-09-10 18:11:16
Im having Access to fetch at ‘http://localhost/api/order/items/2959’ from origin ‘http://localhost:8000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
No they are not ๐๐
asdan15 2020-09-10 18:13:54
How implement sso or build sso?
MonkeyDFeussom 2020-09-10 18:13:56
badralwattar 2020-09-10 18:13:34
No they are not ๐๐
Im accessing them from the localhost
badralwattar 2020-09-10 18:14:36
They canโt be served on the same computer
May be if you served laravel on virtual machine and accessed the website through the ip address would work
MonkeyDFeussom 2020-09-10 18:15:50
badralwattar 2020-09-10 18:14:36
They canโt be served on the same computer
May be if you served laravel on virtual machine and accessed the website through the ip address would work
Yes they are one on the link http://127.0.0.1:8000/
And the next on the localhost
MonkeyDFeussom 2020-09-10 18:17:31
So can u help?
badralwattar 2020-09-10 18:18:06
MonkeyDFeussom 2020-09-10 18:15:50
Yes they are one on the link http://127.0.0.1:8000/
And the next on the localhost
Localhost is same as 127.0.0.1
MonkeyDFeussom 2020-09-10 18:18:18
but I get the cors error
MonkeyDFeussom 2020-09-10 18:18:35
im going crazy
badralwattar 2020-09-10 18:18:46
Try to serve laravel on an ip address
php artisan serve โhost=[your ip address]
badralwattar 2020-09-10 18:18:58
MonkeyDFeussom 2020-09-10 18:18:18
but I get the cors error
They canโt be on the same computer bro
itsvahid_ab 2020-09-10 18:21:19
MonkeyDFeussom 2020-09-10 18:11:16
Im having Access to fetch at ‘http://localhost/api/order/items/2959’ from origin ‘http://localhost:8000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
well it says that you have have to enable CORS in laravel. there’s a package that you can install to solve it
โ prev | next โ