← prev | next →
skys215 2020-05-25 05:38:03
Noorev7 2020-05-25 05:32:02
->name(‘image.upload.post’);
And this part i don’t get it for what can you explain please
you can use route(‘image.upload.post’) to generate full url for this specific route
skys215 2020-05-25 05:38:26
Noorev7 2020-05-25 05:30:59
So why when i use the url of it gives me 404 🤔
show us how you are calling this api
Noorev7 2020-05-25 05:39:16
http://127.0.0.1:8000/add_image
In local
Noorev7 2020-05-25 05:40:00
I put this in another project like this
Noorev7 2020-05-25 05:40:11
if ($request->hasFile(‘image’))
{
$img= ‘http://127.0.0.1:8000/add_image’;
$post->image =$img;
$post->save();
return response()->json($post);
}
Noorev7 2020-05-25 05:43:27
Noorev7 2020-05-25 05:40:11
if ($request->hasFile(‘image’))
{
$img= ‘http://127.0.0.1:8000/add_image’;
$post->image =$img;
$post->save();
return response()->json($post);
}
When I run this project in postman it says 404
skys215 2020-05-25 05:59:06
another project?
Noorev7 2020-05-25 06:02:26
Noorev7 2020-05-25 05:04:03
public function addImg(Request $request)
{
$image = $request->file(‘image’);
$name = time().’.’.$image->getClientOriginalExtension();
$destinationPath = ‘aqlam/image’;
$image->move($destinationPath, $name);
return response()->json($name);
}
Yeah this in the 1st project
Noorev7 2020-05-25 06:03:03
Noorev7 2020-05-25 05:40:11
if ($request->hasFile(‘image’))
{
$img= ‘http://127.0.0.1:8000/add_image’;
$post->image =$img;
$post->save();
return response()->json($post);
}
And i call it here in 2nd one with the route
raka_anamaka 2020-05-25 06:39:53
flyingdragons 2020-05-24 19:55:17
Please check my article on the same. If any doubts you can personally message me or in website comment section too 🙂
Thanks..exactly what I want.
Gowtham_Boopathiraj 2020-05-25 07:11:25
Gowtham_Boopathiraj 2020-05-25 07:11:35
Please help me
Gowtham_Boopathiraj 2020-05-25 07:12:02
I send mail in gmail
Bittle 2020-05-25 07:20:17
Screenshots are way better than pictures of your screen 🙂
Bittle 2020-05-25 07:22:08
And the error show authentication error, incorrect email/password
Gowtham_Boopathiraj 2020-05-25 07:23:34
Bro i have put .env file smtp and gmail username passworld port
Gowtham_Boopathiraj 2020-05-25 07:23:47
First three mail sended
Gowtham_Boopathiraj 2020-05-25 07:23:58
Then showing this error
flyingdragons 2020-05-25 08:59:17
raka_anamaka 2020-05-25 06:39:53
Thanks..exactly what I want.
Awesome
flyingdragons 2020-05-25 09:01:52
themanojyadav 2020-05-24 22:01:04
Some of the methods are awesome. I will try all
Yes it is. Do let us know if you find any other good framework or code
flyingdragons 2020-05-25 09:09:49
Gowtham_Boopathiraj 2020-05-25 07:11:25
1. Try clearing cache
2. Check if your gmail has this security checked -> Allow less secure apps
3. Try testing once with MailTrap
And even show us your .env file code
felixha34 2020-05-25 09:11:19
Gowtham_Boopathiraj 2020-05-25 07:11:25
dirty screen…
Gowtham_Boopathiraj 2020-05-25 09:11:34
Captured so
Gowtham_Boopathiraj 2020-05-25 09:15:34
Gowtham_Boopathiraj 2020-05-25 09:16:51
flyingdragons 2020-05-25 09:17:41
Gowtham_Boopathiraj 2020-05-25 09:15:34
.env file is proper. Can you cross verify with password
flyingdragons 2020-05-25 09:17:57
Try putting double qoutes around password
flyingdragons 2020-05-25 09:18:12
“Password”
flyingdragons 2020-05-25 09:19:05
Gowtham_Boopathiraj 2020-05-25 09:16:51
Awesome. Try putting double quotes around password
Gowtham_Boopathiraj 2020-05-25 09:19:53
Ok bro i try
Gowtham_Boopathiraj 2020-05-25 09:23:00
Same issue bro
Gowtham_Boopathiraj 2020-05-25 09:23:52
Gowtham_Boopathiraj 2020-05-25 09:24:07
Previous working three mail sended but now not working
flyingdragons 2020-05-25 09:30:11
Gowtham_Boopathiraj 2020-05-25 09:23:52
Very wirded!
Try changing password of your gmail without any special characters and test once
As the problem is with your credentials
flyingdragons 2020-05-25 09:30:46
Can you please share mail.php config once
Gowtham_Boopathiraj 2020-05-25 09:30:59
Password is char num with @ only
flyingdragons 2020-05-25 09:31:21
Did you change anything in mail.php?
Gowtham_Boopathiraj 2020-05-25 09:31:50
flyingdragons 2020-05-25 09:31:21
Did you change anything in mail.php?
No bro. Laravel default one
Gowtham_Boopathiraj 2020-05-25 09:32:20
flyingdragons 2020-05-25 09:32:30
Okay this issue is happening from local project or deployed project
flyingdragons 2020-05-25 09:33:13
If local project from your laptop then restart your laptop once
Gowtham_Boopathiraj 2020-05-25 09:35:38
Yes local laravel 5.8 project
Gowtham_Boopathiraj 2020-05-25 09:35:49
Now i have using anydesk bro
flyingdragons 2020-05-25 09:36:46
Gowtham_Boopathiraj 2020-05-25 09:35:49
Now i have using anydesk bro
Oh!
Gowtham_Boopathiraj 2020-05-25 09:37:15
Any solution?
flyingdragons 2020-05-25 09:38:32
Check if any software using 587 port in your laptop
Gowtham_Boopathiraj 2020-05-25 09:39:45
I don’t know bro
flyingdragons 2020-05-25 09:40:37
Oh! Windows
flyingdragons 2020-05-25 09:40:57
Just a moment
Gowtham_Boopathiraj 2020-05-25 09:41:18
flyingdragons 2020-05-25 09:40:37
Oh! Windows
S
← prev | next →