Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
0ed8dfd6
Commit
0ed8dfd6
authored
Dec 14, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve error at the time of updating profile
parent
ef52587c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
45 deletions
+0
-45
DashboardController.php
app/Http/Controllers/Backend/DashboardController.php
+0
-6
profile-edit.blade.php
resources/views/backend/access/users/profile-edit.blade.php
+0
-39
No files found.
app/Http/Controllers/Backend/DashboardController.php
View file @
0ed8dfd6
...
...
@@ -44,12 +44,6 @@ class DashboardController extends Controller
$user
=
User
::
find
(
$userId
);
$user
->
first_name
=
$input
[
'first_name'
];
$user
->
last_name
=
$input
[
'last_name'
];
$user
->
address
=
$input
[
'address'
];
$user
->
state_id
=
$input
[
'state_id'
];
$user
->
country_id
=
config
(
'access.constants.default_country'
);
$user
->
city_id
=
$input
[
'city_id'
];
$user
->
zip_code
=
$input
[
'zip_code'
];
$user
->
ssn
=
$input
[
'ssn'
];
$user
->
updated_by
=
access
()
->
user
()
->
id
;
if
(
$user
->
save
())
{
...
...
resources/views/backend/access/users/profile-edit.blade.php
View file @
0ed8dfd6
...
...
@@ -30,45 +30,6 @@
</div>
</div>
<div class="
form
-
group
">
{{ Form::label('address', trans('validation.attributes.frontend.register-user.address'), ['class' => 'col-lg-2 control-label']) }}
<div class="
col
-
lg
-
10
">
{{ Form::input('textarea', 'address', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.frontend.register-user.address')]) }}
</div>
</div>
{{-- state --}}
<div class="
form
-
group
">
{{ Form::label('state_id', trans('validation.attributes.frontend.register-user.state'), ['class' => 'col-lg-2 control-label']) }}
<div class="
col
-
lg
-
10
">
{{ Form::select('state_id', [] , null, ['class' => 'form-control box-size st', 'placeholder' => trans('validation.attributes.frontend.register-user.state'), 'id' => 'state']) }}
</div><!--col-lg-10-->
</div><!--form-group-->
{{-- city --}}
<div class="
form
-
group
">
{{ Form::label('city_id', trans('validation.attributes.frontend.register-user.city'), ['class' => 'col-lg-2 control-label']) }}
<div class="
col
-
lg
-
10
">
{{ Form::select('city_id', [], null, ['class' => 'form-control box-size ct', 'placeholder' => trans('validation.attributes.frontend.register-user.city'), 'id' => 'city']) }}
</div><!--col-lg-10-->
</div><!--form-group-->
{{-- zipcode --}}
<div class="
form
-
group
">
{{ Form::label('zip_code', trans('validation.attributes.frontend.register-user.zipcode'), ['class' => 'col-lg-2 control-label']) }}
<div class="
col
-
lg
-
10
">
{{ Form::input('name', 'zip_code', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.frontend.register-user.zipcode')]) }}
</div><!--col-lg-10-->
</div><!--form-group-->
{{-- SSN --}}
<div class="
form
-
group
">
{{ Form::label('ssn', trans('validation.attributes.frontend.register-user.ssn'), ['class' => 'col-lg-2 control-label']) }}
<div class="
col
-
lg
-
10
">
{{ Form::input('name', 'ssn', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.frontend.register-user.ssn')]) }}
</div><!--col-lg-10-->
</div><!--form-group-->
<div class="
form
-
group
">
<div class="
col
-
lg
-
10
col
-
md
-
offset
-
4
">
{{ Form::submit(trans('labels.general.buttons.update'), ['class' => 'btn btn-primary', 'id' => 'update-profile']) }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment