Ohhh I see, what do you all think about the 7th version of Laravel that is just now appearing?

|
godwar53 2020-03-05 09:47:25
lexmaa 2020-03-05 09:44:47
protected $casts = [
‘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?

skys215 2020-03-05 09:47:37
dive into the Carbon code and check what’s wrong of your parameters
lexmaa 2020-03-05 09:48:37
it will not change the data format in db. it is a mutator to cast the column to desired format..something like that
godwar53 2020-03-05 09:54:34
skys215 2020-03-05 09:47:37
dive into the Carbon code and check what’s wrong of your parameters

i already check Carbon code and already correct

skys215 2020-03-05 10:01:32
then the problem is solved
godwar53 2020-03-05 10:05:59
nope sir, i think my validation for that format
godwar53 2020-03-05 10:06:34
or unset the data before update the data in controller
godwar53 2020-03-05 10:08:11
godwar53 2020-03-05 10:06:34
or unset the data before update the data in controller

and it works

2020-03-05 10:08:14
Hello all😁
what version of all of you do you think are recommended for learning?
godwar53 2020-03-05 10:09:08
2020-03-05 10:08:14
Hello all😁
what version of all of you do you think are recommended for learning?

5.6

2020-03-05 10:09:22
godwar53 2020-03-05 10:09:08
5.6

why?

godwar53 2020-03-05 10:10:24
2020-03-05 10:09:22
why?

because this version not oldest and not latest😁 and some library requirements have included in this version

godwar53 2020-03-05 10:10:35
IMHO
2020-03-05 10:16:31
godwar53 2020-03-05 10:10:24
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?

harmlez_prinz 2020-03-05 10:23:05
laravel_discuss-28873.jpg
please how do i make this display. The option is been dynamically generated after clicking that insert allowance button
dennis 2020-03-05 10:39:25
Guys which is the best way to consume third party Api in laravel
Gaurang Chauhan 2020-03-05 10:43:39
please anyone help me to give laravel project
sujith857 2020-03-05 10:54:15
Any vTiger crm developers???
mmohitssingla 2020-03-05 10:58:07
Can i send sms using twilio test creds?
lexmaa 2020-03-05 11:06:36
ooo i once used vtiger crm
lexmaa 2020-03-05 11:06:42
hahahahahahahahhaa
2020-03-05 11:40:28
https://youtu.be/D7I_i5szRDk

Object not found! The requested URL was not found on this server. localhost codeigniterYouTube
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

sadeqi125 2020-03-05 12:21:41
how to set host email to laravel
2020-03-05 12:56:23
laravel_discuss-28884.jpg

2020-03-05 15:32:05
Guys please help me
2020-03-05 15:32:11
Contact form works in localhost,when i upload project in real server it does not’ work
2020-03-05 15:32:39
laravel_discuss-28887.jpg
Error
2020-03-05 15:32:47
Less secure app access is enabled
2020-03-05 15:33:11
Login and password of gmail are correct
2020-03-05 15:36:02
laravel_discuss-28890.jpg
env config
TursunboyevJahongir 2020-03-05 15:37:39
I have one problem
TursunboyevJahongir 2020-03-05 15:38:11
multi upload image in rest Api
dennis 2020-03-05 15:38:15
This issue is caused by wrong credentials to your smtp
TursunboyevJahongir 2020-03-05 15:38:25
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:39:16
foreach ($files as $file) {
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);
}

dennis 2020-03-05 15:39:27
2020-03-05 15:32:11
Contact form works in localhost,when i upload project in real server it does not’ work

What is your .env config in localhost

2020-03-05 15:39:41
I am beginner in laravel
2020-03-05 15:39:51
dennis 2020-03-05 15:39:27
What is your .env config in localhost

laravel_discuss-28899.jpg

2020-03-05 15:40:29
dennis 2020-03-05 15:38:15
This issue is caused by wrong credentials to your smtp

you mean incorrect password or login?

2020-03-05 15:40:47
I want to learn the blade template in laravel
2020-03-05 15:40:50
Please help me out
Roham0010 2020-03-05 15:41:29
2020-03-05 15:40:47
I want to learn the blade template in laravel

https://laravel.com/docs/6.x/blade

dennis 2020-03-05 15:41:35
2020-03-05 15:40:29
you mean incorrect password or login?

Means its trying to push to gmail server but fails due to wrong credentials or configuration

dennis 2020-03-05 15:42:02
2020-03-05 15:40:29
you mean incorrect password or login?

Otherwise everything in your code is working okay

dennis 2020-03-05 15:42:18
Only check configuration to email
TursunboyevJahongir 2020-03-05 15:42:26
TursunboyevJahongir 2020-03-05 15:39:16
foreach ($files as $file) {
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

2020-03-05 15:42:51
What all types of form submission possible in laravel
2020-03-05 15:45:05
dennis 2020-03-05 15:42:02
Otherwise everything in your code is working okay

my credentials are correct,i can enter gmail with manually entering them

dennis 2020-03-05 15:45:40
2020-03-05 15:45:05
my credentials are correct,i can enter gmail with manually entering them

The issue is gmail blocks apps from entering

TursunboyevJahongir 2020-03-05 15:45:43
!!!!! Hello friends
|