What is axios and how to use it in Laravel?

|
Bhavyakumar Panchotiya 2021-08-10 16:10:58
NanoCellMusic 2021-08-10 13:01:39
you spelt string wrong on line 34. I suggest reading through the exception properly as I saw this in 2 seconds

thank you bro …it is working now👍

NanoCellMusic 2021-08-10 16:35:02
Bhavyakumar Panchotiya 2021-08-10 16:10:58
thank you bro …it is working now👍

Awesome, glad i could help

Bhavyakumar Panchotiya 2021-08-10 18:32:59
hello developer .. i’m face one problem .. the problem is my form is created in reacts js and i want create a API in laravel for that form and also fetch data from reacts js form … so can anyone tell me how to do it?
Phemorah 2021-08-10 19:09:44
Bhavyakumar Panchotiya 2021-08-10 18:32:59
hello developer .. i’m face one problem .. the problem is my form is created in reacts js and i want create a API in laravel for that form and also fetch data from reacts js form … so can anyone tell me how to do it?

You can use axios

trex1910 2021-08-10 19:12:40
Anyone use cursor in store procedures?
Need example
2021-08-10 19:37:19
Guys!! Am have an issue with the GMaps display in my laravel project. Its always an Oops!! Something went wrong..? Only to find out its an InvalidKeyMapError, I have tried the google platform console and then credentials but trust me i generated an API key but its always been giving me the same errors for days now.. I had no choice but to come over here for some help.
Nurullah Demirel 2021-08-10 19:47:19
Hello guys anyone know spatie activity log library
Nurullah Demirel 2021-08-10 19:47:31
In laravel
poppyhusk 2021-08-10 19:59:32
trex1910 2021-08-10 19:12:40
Anyone use cursor in store procedures?
Need example

Model::scope or Model::scopeQuery is the syntax. Please search it in official laravel documentation.

poppyhusk 2021-08-10 19:59:42
2021-08-10 19:37:19
Guys!! Am have an issue with the GMaps display in my laravel project. Its always an Oops!! Something went wrong..? Only to find out its an InvalidKeyMapError, I have tried the google platform console and then credentials but trust me i generated an API key but its always been giving me the same errors for days now.. I had no choice but to come over here for some help.

What kind of implementation you have done?

poppyhusk 2021-08-10 19:59:53
Bhavyakumar Panchotiya 2021-08-10 18:32:59
hello developer .. i’m face one problem .. the problem is my form is created in reacts js and i want create a API in laravel for that form and also fetch data from reacts js form … so can anyone tell me how to do it?

Basic XHR will also work

poppyhusk 2021-08-10 20:00:11
And yes axios is a very popular choice across all JS frameworks.
poppyhusk 2021-08-10 20:00:48
Yogesh121212 2021-08-10 14:14:50
Hiring freelancer for boosting website speed
Php laravel ecommerce website
Frontend bootstrap,jquery

please DM

poppyhusk 2021-08-10 20:01:32
u_f_0_1 2021-08-10 13:52:52
I’m not trying to get imagine from a datebase

You need to encode and decode image using base 64 format to store and retrieve image from DB

poppyhusk 2021-08-10 20:03:36
u_f_0_1 2021-08-10 13:31:09
Good morning guys

please I have an issue

My img scr tag isn’t working

The path to the image is correct cos when I click on the path in vscode it takes me to the image

But same image isn’t showing in my browser

Please make sure you are using asset($path) function if the image is getting stored in storage/app/public folder. And use function Storage::path($path) if the image is not getting stored in above path but its still in storage folder.

u_f_0_1 2021-08-10 20:04:16
poppyhusk 2021-08-10 20:03:36
Please make sure you are using asset($path) function if the image is getting stored in storage/app/public folder. And use function Storage::path($path) if the image is not getting stored in above path but its still in storage folder.

I fixed it already thanks…. I didn’t add a {{}}

2021-08-10 20:04:40
poppyhusk 2021-08-10 19:59:42
What kind of implementation you have done?

I started by cloning one of the Google Maps Apis from github. Followed everything right and then i get an Oopps. Not forgetting i enabled the geocoding as well as the Maps API Javascript. But anytime i try to generate the API Key and paste it in my GMaps.php file. It runs normally in my project as well as in the browser but somehow it outputs an InvalidKeyMapError..?! Which still bothers me.. Any help is welcome

poppyhusk 2021-08-10 20:04:41
BodyanWA 2021-08-10 07:26:46
Is it a good idea to manually define a many to many relationship via coupling one-to-many to an intermediary table(aka pivot table)? I can’t seem to find a way to seed the intermediary table if I use Eloquent’s standard declaration of many-to-many relationship

For intermediate table seeding you can use model sync function.

u_f_0_1 2021-08-10 20:04:50
poppyhusk 2021-08-10 20:03:36
Please make sure you are using asset($path) function if the image is getting stored in storage/app/public folder. And use function Storage::path($path) if the image is not getting stored in above path but its still in storage folder.

It wasn’t a storage link problem though

poppyhusk 2021-08-10 20:05:36
2021-08-10 20:04:40
I started by cloning one of the Google Maps Apis from github. Followed everything right and then i get an Oopps. Not forgetting i enabled the geocoding as well as the Maps API Javascript. But anytime i try to generate the API Key and paste it in my GMaps.php file. It runs normally in my project as well as in the browser but somehow it outputs an InvalidKeyMapError..?! Which still bothers me.. Any help is welcome

I cannot understand your way of your implementation.

poppyhusk 2021-08-10 20:05:47
Properly
poppyhusk 2021-08-10 20:07:19
Boopathi K 2021-08-10 15:19:52
Hi
Is that possible to find which line taking time for execution in laravel

Write test cases. Or use something like pest or more advance tool such as blackfire.

Bhavyakumar Panchotiya 2021-08-10 20:22:43
Phemorah 2021-08-10 19:09:44
You can use axios

What is axios and how to use it in Laravel?

azizsheikh521 2021-08-10 20:23:46
Need a laravel developer for my existing project
azizsheikh521 2021-08-10 20:24:01
Please ping me in personal
otabekzairov 2021-08-10 20:27:38
Bhavyakumar Panchotiya 2021-08-10 20:22:43
What is axios and how to use it in Laravel?

Axios is promise based HTTP client

For instance if you build API with Laravel and Some front end with Vue you can use Axios to request your BackEnd and fetch some data from there or send data like that

otabekzairov 2021-08-10 20:29:23
azizsheikh521 2021-08-10 20:23:46
Need a laravel developer for my existing project

What kinda project can you give a little info about it. Does it take long or is it small project?

azizsheikh521 2021-08-10 20:30:50
otabekzairov 2021-08-10 20:29:23
What kinda project can you give a little info about it. Does it take long or is it small project?

Small project need to work on some reports and some bugs

otabekzairov 2021-08-10 20:33:40
azizsheikh521 2021-08-10 20:30:50
Small project need to work on some reports and some bugs

Ok check your DM

manuelbosi 2021-08-10 21:27:35
Hi guys, someone know if it’s possible merge 4 query saved on 4 different variables in one variable?
I have a frontend form with some filters: dropdown, checkbox and one textbox
It’s should work like: if user pass some GET params (sending form) the index method return filtered data and paginated otherwise return all data paginated

The problem is i have 4 query because i need a precise order and the unique thing i can do is using 4 scope in model to get this data
CONTROLLER – index() method
$set1 = Model::with([‘relationship1’, ‘relationship2’])->IsImportant();
$set2 = Model::with([‘relationship1’, ‘relationship2’])->IsNotImportant();
$set3 = Model::with([‘relationship1’, ‘relationship2’])->IsLast();
$set4 = Model::with([‘relationship1’, ‘relationship2’])->IsPast();

i’d like a final result like:
$final = set1 + set2 + set3 + set4

I can’t append the “->get()” method because it’s return the collection with data e if i do that stop working:
– the filters applied with a function like:
– pagination
ES:
if (! empty($param1) && ! is_null($param1[0])) {
$miaQuery->whereHas(‘relationship1’, function ($query) use ($param1) {
$query->whereIn(‘id’, $param1);
});
}

in this code miaQuery it’s should be $final
i try to search on all possible place but i can’t found anything 😅
Thankks

Bhavyakumar Panchotiya 2021-08-10 21:28:14
otabekzairov 2021-08-10 20:27:38
Axios is promise based HTTP client

For instance if you build API with Laravel and Some front end with Vue you can use Axios to request your BackEnd and fetch some data from there or send data like that

Ok

2021-08-10 21:42:37
Anyone who can solve my issue i will pay for this. Its really very cmon issue
2021-08-10 21:43:25
Please pm
2021-08-10 21:49:08
laravel_discuss-91176.jpg
I need unit total also
otabekzairov 2021-08-10 22:09:07
2021-08-10 21:49:08
I need unit total also

Just calculate them like amount
And render them to your blade file

|