what version of all of you do you think are recommended for learning?
ohhh I see, what do you all think about the 7th version of Laravel that is just now appearing?
Any vTiger crm developers?
Can i send sms using twilio test creds?
you mean incorrect password or login?
‘birthday’ => ‘date:Y-m-d’,
‘joined_at’ => ‘datetime:Y-m-d H:00’,
];
what the usage of $casts? is it not alter the data in db?
i already check Carbon code and already correct
and it works
what version of all of you do you think are recommended for learning?
what version of all of you do you think are recommended for learning?
5.6
why?
because this version not oldest and not latest😁 and some library requirements have included in this version
ohhh I see, what do you all think about the 7th version of Laravel that is just now appearing?

please how do i make this display. The option is been dynamically generated after clicking that insert allowance button
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
Localhost
Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.11


Error

env config
{
$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,
]);
}
dd($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->uploadedBy = Auth::user()->id;
$media->save();
}
} else {
return response()->json([‘invalid_file_format’], 422);
}
return response()->json([‘file_uploaded’], 200);
}
What is your .env config in localhost
you mean incorrect password or login?
https://laravel.com/docs/6.x/blade
Means its trying to push to gmail server but fails due to wrong credentials or configuration
Otherwise everything in your code is working okay
dd($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->uploadedBy = Auth::user()->id;
$media->save();
}
} else {
return response()->json([‘invalid_file_format’], 422);
}
return response()->json([‘file_uploaded’], 200);
}
I can’t enter foreach
my credentials are correct,i can enter gmail with manually entering them
The issue is gmail blocks apps from entering