[here the user transfers the photo from the device to the form](https://i.stack.imgur.com/c1OaV.png)
***it is necessary that when registering a user he entered a photo and this photo could be viewed by the administrator in the admin area***

**web.php**

```php
Route::post('/head', 'ImageController@upload')->name('image.upload');

```

**ImageController.php**

```php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class ImageController extends Controller
{
    public function upload(Request $request)
    {
        $path = $request - file('image')->store('upload', 'public');
        return view('default',['path'=> $path]);
    }
}

```

(php artisan storage:link) *entered*

**input form**

```html
<div class="form-group row">
    <label for="ydostak" class="col-md-4 col-form-label text-md-right">{{ __('Фото удостоверение с двух сторон') }}</label>
    <form action{{ route('image.upload')}}="" method="post" accept-charset="multipart/form-data">
        {{ csrf_field() }}

        <div class="form-group">
            <input type="file" name="image">
        </div>
    </form>
</div>

```

**withdrawal form**

```html
@isset ($path)
    <img class="img-fluid" scr="{{asset('/storage/'. $path)}}" alt="">
@endisset

```