You has finished install php and web server?

|
dennis 2020-03-05 15:46:28
dennis 2020-03-05 15:45:40
The issue is gmail blocks apps from entering

Gmail may detect the app as a virus expecially if you do not have secure connection

TursunboyevJahongir 2020-03-05 15:47:16
vatf ……..
dennis 2020-03-05 15:47:26
2020-03-05 15:45:05
my credentials are correct,i can enter gmail with manually entering them

Try creating on the same email an app login to authorize third party apps like yours to login

TursunboyevJahongir 2020-03-05 15:47:34
mather father
dennis 2020-03-05 15:48:27
Hello what is the issue friend
2020-03-05 15:49:04
dennis 2020-03-05 15:47:26
Try creating on the same email an app login to authorize third party apps like yours to login

thank you i will try

TursunboyevJahongir 2020-03-05 15:49:44
public function store(Request $request)
{
$request->validate([
‘district_id’ => ‘required’,
‘category_id’ => ‘required’,
‘shop_id’ => ‘required’,
‘manufacturer_id’ => ‘required’,
‘default_image’ => ‘nullable’,
‘name’ => ‘required|min:3’,
‘price’ => ‘required|min:5’,
‘description’ => ‘nullable’,
‘discount’ => ‘nullable|digits_between:0,100’,
‘photos’ => ‘nullable’
]);

$all = $request->all();
$reg_id = District::where(‘id’, ‘=’, $all[‘district_id’])->first();
$all[‘region_id’] = $reg_id->region_id;

$data = Product::create($all);

$index = null;
if ($request->file(‘photos’)) {
if (!$request->hasFile(‘photos’)) {
return response()->json([‘upload_file_not_found’], 400);
}

$allowedfileExtension = [‘pdf’, ‘jpg’, ‘png’];
$files[] = $request->file(‘photos’);

foreach ($files as $file) {
$extension = $file->getClientOriginalExtension();

$check = in_array($extension, $allowedfileExtension);

if ($check) {
foreach ($request->photos as $mediaFiles) {
$media = new Image();
$media_ext = $mediaFiles->getClientOriginalName();
$media_no_ext = pathinfo($media_ext, PATHINFO_FILENAME);
$mFiles = $media_no_ext . ‘-‘ . uniqid() . ‘.’ . $extension;
$mediaFiles->move(public_path() . ‘/products/’, $mFiles);
dd($mediaFiles);
$media->path = $mediaFiles;
$media->product_id = $data->id;
$media->save();
if (is_null($index)) {
$index = $media->id;
}
}
} else {
return response()->json([‘invalid_file_format’], 422);
}
}
$all[‘default_image’] = $index;
$data->id->update($all[‘default_image’]);
}
return response()->json([
‘status’ => ‘ok’,
‘message’ => ‘Great success! New Shop created’,
‘data’ => $data,
]);
}

TursunboyevJahongir 2020-03-05 15:49:51
public function store(Request $request)
{
$request->validate([
‘district_id’ => ‘required’,
‘category_id’ => ‘required’,
‘shop_id’ => ‘required’,
‘manufacturer_id’ => ‘required’,
‘default_image’ => ‘nullable’,
‘name’ => ‘required|min:3’,
‘price’ => ‘required|min:5’,
‘description’ => ‘nullable’,
‘discount’ => ‘nullable|digits_between:0,100’,
‘photos’ => ‘nullable’
]);

$all = $request->all();
$reg_id = District::where(‘id’, ‘=’, $all[‘district_id’])->first();
$all[‘region_id’] = $reg_id->region_id;

$data = Product::create($all);

$index = null;
if ($request->file(‘photos’)) {
if (!$request->hasFile(‘photos’)) {
return response()->json([‘upload_file_not_found’], 400);
}

$allowedfileExtension = [‘pdf’, ‘jpg’, ‘png’];
$files[] = $request->file(‘photos’);

foreach ($files as $file) {
$extension = $file->getClientOriginalExtension();

$check = in_array($extension, $allowedfileExtension);

if ($check) {
foreach ($request->photos as $mediaFiles) {
$media = new Image();
$media_ext = $mediaFiles->getClientOriginalName();
$media_no_ext = pathinfo($media_ext, PATHINFO_FILENAME);
$mFiles = $media_no_ext . ‘-‘ . uniqid() . ‘.’ . $extension;
$mediaFiles->move(public_path() . ‘/products/’, $mFiles);
dd($mediaFiles);
$media->path = $mediaFiles;
$media->product_id = $data->id;
$media->save();
if (is_null($index)) {
$index = $media->id;
}
}
} else {
return response()->json([‘invalid_file_format’], 422);
}
}
$all[‘default_image’] = $index;
$data->id->update($all[‘default_image’]);
}
return response()->json([
‘status’ => ‘ok’,
‘message’ => ‘Great success! New Shop created’,
‘data’ => $data,
]);
}

TursunboyevJahongir 2020-03-05 15:50:14
to’g’risi zaybal
sadeqi125 2020-03-05 15:51:10
why when i refresh my rout back to my home page?
Gowtham_Boopathiraj 2020-03-05 16:28:03
Hi frds
Auth concept doubt
I have using laravel5.8

Create login previously development in members tables.

Auth concept default take to users tables in auth.php

But i remove users in auth.php
I changed members.

But not working auth in redirect page

How to solve the problem

Gowtham_Boopathiraj 2020-03-05 17:00:34
No resources laravel 5.8
Ant_Jr 2020-03-05 17:17:20
Hello there! please when I tried registering a user account recieved
ErrorException (E_WARNING)
fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown
Ant_Jr 2020-03-05 17:45:53
Ant_Jr 2020-03-05 17:17:20
Hello there! please when I tried registering a user account recieved
ErrorException (E_WARNING)
fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown

[Resolved].

Prakash D 2020-03-05 17:47:27
I created new laravel project in ubuntu server the problem is only home route is working other routes are not working..I am using laravel 5.7
asdan15 2020-03-05 17:57:16
hallo all, in here. implementation lumen+graphql?
Prakash D 2020-03-05 17:58:32
You mean clear the route cache
asdan15 2020-03-05 17:59:15
Prakash D 2020-03-05 17:47:27
I created new laravel project in ubuntu server the problem is only home route is working other routes are not working..I am using laravel 5.7

you has finished install php and web server?

demianrey 2020-03-05 18:01:46
laravel_discuss-28945.jpg

demianrey 2020-03-05 18:02:40
Would you help me ?, for some reason my application does not send emails
Prakash D 2020-03-05 18:03:54
asdan15 2020-03-05 17:59:15
you has finished install php and web server?

Ss

Prakash D 2020-03-05 18:04:04
But not working
asdan15 2020-03-05 18:23:02
Prakash D 2020-03-05 18:03:54
Ss

yes

asdan15 2020-03-05 18:23:36
demianrey 2020-03-05 18:01:46

your account gmail use two factory?

demianrey 2020-03-05 18:28:53
asdan15 2020-03-05 18:23:36
your account gmail use two factory?

No, and I have access to insecure applications enabled

asdan15 2020-03-05 18:30:55
can you try change mail_host smtp.gmail.com
demianrey 2020-03-05 18:31:51
asdan15 2020-03-05 18:30:55
can you try change mail_host smtp.gmail.com

I already did it too 😞

demianrey 2020-03-05 18:32:45
is there any way to see a record(log) in real time, to see where the fault is
DesolatorMagno 2020-03-05 18:39:39
Did you check if your server ip is blocked?
DesolatorMagno 2020-03-05 18:40:48
You could have your env right, and a perfect system, but if you are blocked, you are blocked.
demianrey 2020-03-05 18:43:27
DesolatorMagno 2020-03-05 18:40:48
You could have your env right, and a perfect system, but if you are blocked, you are blocked.

How can I know if the IP is blocked?

DesolatorMagno 2020-03-05 18:43:48
Google, gmail blocked ip, or something.
DesolatorMagno 2020-03-05 18:43:56
i don’t use gmail in production.
DesolatorMagno 2020-03-05 18:47:12
block/blacklisted
demianrey 2020-03-05 18:48:25
DesolatorMagno 2020-03-05 18:43:56
i don’t use gmail in production.

What mail provider do you recommend?

DesolatorMagno 2020-03-05 18:48:54
you should be using a third party, not sending it from your email.
DesolatorMagno 2020-03-05 18:49:16
If you are no blocked now you could be in the future because of to many mails.
asdan15 2020-03-05 18:53:11
or you can try mailtrap.io
demianrey 2020-03-05 18:58:13
asdan15 2020-03-05 18:53:11
or you can try mailtrap.io

I’ll try, thanks

codewithah 2020-03-06 01:01:43
Hello.As you may has seen they are some websites that compare price of a product among the stors.For example a phone in a website is 880 USD and in another website is 900 USD.My question is how this websites works.
1 – Web scrapping or something simmilar this
2 – Contact with store and get a API (I do not think)
3 – Or they will enter price of each product with their mannualy
KRYPTOMAD 2020-03-06 04:51:01
demianrey 2020-03-05 18:01:46

Insecure connections must go through port 587 !!

demianrey 2020-03-06 05:27:57
I did not know, I’m going to try that way… Thanks @KRYPTOMAD
skys215 2020-03-06 06:13:49
codewithah 2020-03-06 01:01:43
Hello.As you may has seen they are some websites that compare price of a product among the stors.For example a phone in a website is 880 USD and in another website is 900 USD.My question is how this websites works.
1 – Web scrapping or something simmilar this
2 – Contact with store and get a API (I do not think)
3 – Or they will enter price of each product with their mannualy

I think is web scraping

skys215 2020-03-06 06:14:43
A good website is practical and useful.
SUH135 2020-03-06 07:19:07
Hey guys ,
SUH135 2020-03-06 07:19:54
I need to make a api for android application can i go with laravel
SUH135 2020-03-06 07:20:27
Suggest me some laravel tutorials
skys215 2020-03-06 07:21:52
Yes you can
To make apis, you just need to return json, instead of html.
Nothing’s different
SUH135 2020-03-06 07:23:51
Do you know any tutorials for bignners to start with
webkuteer 2020-03-06 08:28:51
Hello all this is Srinivas from India
|