why when i refresh my rout back to my home page?
you has finished install php and web server?
Would you help me ?
your account gmail use two factory?
Did you check if your server ip is blocked?
How can I know if the IP is blocked?
What mail provider do you recommend?
Gmail may detect the app as a virus expecially if you do not have secure connection
Try creating on the same email an app login to authorize third party apps like yours to login
thank you i will try
{
$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,
]);
}
{
$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,
]);
}
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
ErrorException (E_WARNING)
fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown
ErrorException (E_WARNING)
fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown
[Resolved].
you has finished install php and web server?

Ss
yes
your account gmail use two factory?
No, and I have access to insecure applications enabled
I already did it too 😞
How can I know if the IP is blocked?
What mail provider do you recommend?
I’ll try, thanks
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
Insecure connections must go through port 587 !!
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
To make apis, you just need to return json, instead of html.
Nothing’s different