Compare commits

..

2 Commits

Author SHA1 Message Date
AslanAV 6f6dbdefad Merge remote-tracking branch 'origin/main'
Tests & Lint & Deploy to Railway / build (8.1) (push) Failing after 1m14s Details
Tests & Lint & Deploy to Railway / deploy (8.1) (push) Has been skipped Details
# Conflicts:
#	routes/web.php
2024-01-16 16:28:31 +03:00
AslanAV 0413103496 add upload files 2024-01-16 16:24:44 +03:00
3 changed files with 16 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
/.phpunit.cache
/node_modules
/public/build
/public/uploads
/public/hot
/public/storage
/storage/*.key

View File

@ -2,7 +2,8 @@
<meta name="csrf-param" content="_token" />
@vite(['resources/css/app.css', 'resources/js/app.js'])
<h2>список пользователей</h2>
<br>
<br>
<a href="{{ route('users.create') }}"> создать пользователя</a>
<br>
<br>
@ -31,3 +32,11 @@
@endforeach
</tbody>
</table>
<br>
<br>
{{ Form::open(array('url' => route('uploadfile'), 'method' => 'POST', 'files'=>'true')) }}
Select the file to upload.
{{ Form::file('image') }}
{{ Form::submit('Upload File')}}
{{Form::close()}}

View File

@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\UploadFileController;
use App\Http\Controllers\UserController;
use Illuminate\Support\Facades\Route;
@ -29,6 +30,10 @@ Route::get('/course', function () {
});
Route::get('/abitur', function () {
return view('pages.abitur');
Route::post('/uploadfile', [UploadFileController::class, 'showUploadFile'])->name('uploadfile');
Route::get('/test', function () {
return view('test');
});