Skip to content

Commit

Permalink
Merge pull request #816 from ladybirdweb/development
Browse files Browse the repository at this point in the history
Product upload path changed
  • Loading branch information
Ashutosh pathak authored Apr 21, 2019
2 parents 1c09bf9 + 3f3e537 commit 34918c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Front/BaseClientController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function postProfile(ProfileRequest $request)
if ($request->hasFile('profile_pic')) {
$file = $request->file('profile_pic');
$name = \Input::file('profile_pic')->getClientOriginalName();
$destinationPath = public_path('common\images\users');
$destinationPath = public_path('common/images/users');
$fileName = rand(0000, 9999).'.'.$name;
$file->move($destinationPath, $fileName);
$user->profile_pic = $fileName;
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Requests/User/ProfileRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function rules()
'last_name' => 'required',
'company' => 'required',
'email' => 'required',
'mobile' => 'required|numeric',
'mobile_code' => 'required|numeric',
'mobile' => 'required',
'mobile_code' => 'required',
'address' => 'required',
'zip' => 'required|numeric',
'user_name' => 'required|unique:users,user_name,'.$userid,
Expand All @@ -49,8 +49,8 @@ public function rules()
'last_name' => 'required|max:30',
'mobile' => 'required|regex:/[0-9]/|min:5|max:20',
'email' => 'required',
'mobile_code' => 'required|numeric',
'mobile' => 'required|numeric',
'mobile_code' => 'required',
'mobile' => 'required',
'zip' => 'required|numeric',
'address' => 'required|max:300',
'country' => 'required|exists:countries,country_code_char2',
Expand Down

0 comments on commit 34918c8

Please sign in to comment.