Skip to content

Instantly share code, notes, and snippets.

Avatar

Zakari Abdessamad abdes-zakari

View GitHub Profile
View laravelError
//in web.php:
Route::post('/profile/edit/save', 'AccountUserController@saveProfile')->name('save_profile');
// html code
<form class="profile-data" enctype="multipart/form-data" method="POST" action="{{ route('save_profile') }}">
{{ csrf_field() }}
<input type="hidden" name="id_user" value="{{ $user->id}}">
<div class="row r-avatar">
<div class="col-md-4" style="border:0px solid">
<img src="{{ URL::asset('frontend/img/avatars/')}}/{{ $user->user_avatar}}" alt="Avatar" style="width:100px;height:100px;max-width: none;" class="img-thumbnail img-circle">
You can’t perform that action at this time.