diff --git a/.gitignore b/.gitignore index d7cf440..3649080 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /.phpunit.cache /node_modules /public/build +/public/uploads /public/hot /public/storage /storage/*.key diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php index 739ed4e..855375a 100644 --- a/resources/views/users/index.blade.php +++ b/resources/views/users/index.blade.php @@ -2,7 +2,8 @@ @vite(['resources/css/app.css', 'resources/js/app.js'])

список пользователей

- +
+
создать пользователя

@@ -31,3 +32,11 @@ @endforeach +
+
+ +{{ Form::open(array('url' => route('uploadfile'), 'method' => 'POST', 'files'=>'true')) }} + Select the file to upload. +{{ Form::file('image') }} +{{ Form::submit('Upload File')}} +{{Form::close()}} diff --git a/routes/web.php b/routes/web.php index b15cfad..8e7e9db 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,7 @@ name('uploadfile'); + Route::get('/test', function () { return view('test'); });