← prev | next →
DesolatorMagno 2020-08-20 20:01:46
Yes, what you are doing is wrong, I told you what you can do
Ajitcool008 2020-08-20 20:02:10
NectarbookingAPIController.php
Ajitcool008 2020-08-20 20:02:28
Getting error to pass array in header
Ajitcool008 2020-08-20 20:02:53
Just want to pass application json and key in array header
Ajitcool008 2020-08-20 20:03:24
Any suggestions will helpful
DesolatorMagno 2020-08-20 20:05:27
Ankit2103 2020-08-20 20:01:07
I want toh run insert query once
I don’t get it well, but i see you check a table and make the creation in another.
Mikedee 2020-08-20 20:30:40
$supplier= supplier::get(); Hi Guys kindly how can i pass this here please @livewire(‘editadmin’,[‘supp’ => $name->last])
Anyone please
Ajitcool008 2020-08-20 20:38:46
Ajitcool008 2020-08-20 20:02:28
Getting error to pass array in header
Hi anyone
DesolatorMagno 2020-08-20 20:40:28
Ajitcool008 2020-08-20 20:38:46
Hi anyone
Send code capture (if using snipping tool much better) or if is to big use a service like pastebin or something, not everyone is gonna download and read a archive.
Ajitcool008 2020-08-20 20:49:52
DesolatorMagno 2020-08-20 20:40:28
Send code capture (if using snipping tool much better) or if is to big use a service like pastebin or something, not everyone is gonna download and read a archive.
Ok
Ajitcool008 2020-08-20 20:51:47
But can u check it for now
Ajitcool008 2020-08-20 20:51:58
I will remind it for next time
Ajitcool008 2020-08-20 20:57:21

Like this?
Ajitcool008 2020-08-20 20:58:11

Start of the function
Ajitcool008 2020-08-20 21:00:15

This is where I’m facing problem
Top of the screen, you can see the commented code as well because I’ve given it ample efforts.
DesolatorMagno 2020-08-20 21:02:20
Ajitcool008 2020-08-20 20:57:21
Like this?
You are using raw sql expresion?
DesolatorMagno 2020-08-20 21:05:03
Without intention to offend, but that code is awfull, you can’t put api keys, IP address
DesolatorMagno 2020-08-20 21:05:18
https://laravel.com/docs/7.x/responses#attaching-headers-to-responses
Bhushan 2020-08-20 21:07:38
Any one with experience of product comparison affiliate marketing website?
Ajitcool008 2020-08-20 21:08:13
DesolatorMagno 2020-08-20 21:02:20
You are using raw sql expresion?
certainly I can
But just wanted to keep it simple and make it work.
DesolatorMagno 2020-08-20 21:10:20
No no no, it is not simple, simple would be to make a simple config file for everything and use .env, and using prepare statement is not rocket science, and if is hard to you, more reason to practice to get better at it.
Ajitcool008 2020-08-20 21:11:37
DesolatorMagno 2020-08-20 21:10:20
No no no, it is not simple, simple would be to make a simple config file for everything and use .env, and using prepare statement is not rocket science, and if is hard to you, more reason to practice to get better at it.
Yes m practicing
Ajitcool008 2020-08-20 21:13:13
For now m just searching for solution
Unknownuser009 2020-08-20 21:14:19
i am a new in laravel please help me ..i cant find any solution.
Ajitcool008 2020-08-20 21:14:32
$device_token = DB::table(‘users’)
->select(‘device_token’)
->where(‘id’, 20)->first();
Unknownuser009 2020-08-20 21:14:48
how can i insert data in relation table using model
Unknownuser009 2020-08-20 21:15:21
i have a two table 1).customers (id,name,address)
Unknownuser009 2020-08-20 21:15:53
and 2nd table Orders(id,item,price,Customers_id)
Unknownuser009 2020-08-20 21:17:01

this mi smy model
DesolatorMagno 2020-08-20 21:17:41
Try to work using the model and not the DB, there are many features that you loose because of it.
Unknownuser009 2020-08-20 21:17:50

contoller
DesolatorMagno 2020-08-20 21:18:35
$user->order()->create( $arrayOfdata)
Unknownuser009 2020-08-20 21:18:38
please say me which code i have to write in contoller so my data add in customer and order table
DesolatorMagno 2020-08-20 21:19:13
Unknownuser009 2020-08-20 21:18:38
please say me which code i have to write in contoller so my data add in customer and order table
The code change depending of the type of relationship, 1-1, n-n, 1-n.
Mikedee 2020-08-20 21:19:21
$supplier= supplier::get(); Hi Guys kindly how can i pass this here please @livewire(‘editadmin’,[‘supp’ => $name->last])
Anyone please
Unknownuser009 2020-08-20 21:19:33
DesolatorMagno 2020-08-20 21:17:41
Try to work using the model and not the DB, there are many features that you loose because of it.
yes sir but how can i use will u please solve it i tried lot but cant find solution
Unknownuser009 2020-08-20 21:20:00
DesolatorMagno 2020-08-20 21:19:13
The code change depending of the type of relationship, 1-1, n-n, 1-n.
i have one to one relationship
DesolatorMagno 2020-08-20 21:21:11
Unknownuser009 2020-08-20 21:19:33
yes sir but how can i use will u please solve it i tried lot but cant find solution
https://laravel.com/docs/7.x/eloquent-relationships#inserting-and-updating-related-models
Unknownuser009 2020-08-20 21:24:29
DesolatorMagno 2020-08-20 21:21:11
https://laravel.com/docs/7.x/eloquent-relationships#inserting-and-updating-related-models
ya i tried but cant do that …
Unknownuser009 2020-08-20 21:24:41
thanks in advance
Anoop Shukla 2020-08-20 21:48:39
Meera 2020-08-20 19:47:21
This error after changing my code
You are not using file uploading header file in you controller go and upload all file uploading header files
Meera 2020-08-20 22:15:57
Anoop Shukla 2020-08-20 21:48:39
You are not using file uploading header file in you controller go and upload all file uploading header files
Done thank u
queue_sqs 2020-08-21 02:20:35
Vapor? Anyone used it in high scale?
mhd_arffnn 2020-08-21 06:58:38
is there any real life example using apiato? curious to see how it works
jaideep_bishnoi 2020-08-21 07:18:55
https://twitter.com/taylorotwell/status/1296556354593792000
Taylor Otwell 🛸 –
TwitterLaravel 8.x skeleton will include a “app/Models” directory by default. 👀
An_Unknown_Ghost 2020-08-21 10:15:33

after hosting my laravel website on hostinger, images are not loading on my website. I am encountering the above errors. please help
skys215 2020-08-21 10:34:36
edit .env APP_URL to your actual domain name
An_Unknown_Ghost 2020-08-21 10:35:53
i have done that
skys215 2020-08-21 10:37:19
clear config cache
An_Unknown_Ghost 2020-08-21 10:38:31
this is also done
← prev | next →