добавляю тестовые скрипты на всякий случай

This commit is contained in:
vasya
2026-04-11 19:38:43 +03:00
parent 77bd5c2581
commit 2c5dbfc4d1
3 changed files with 97 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Http\Controllers;
use App\Models\TestFormModel;
use Illuminate\Http\Request;
class TestFormController extends Controller
{
public function getForm()
{
return view('test_form');
}
public function setForm(Request $rqst)
{
$testTable = new TestFormModel;
$testTable->first_name = $rqst->first_name;
$testTable->last_name = $rqst->last_name;
$testTable->department_name = $rqst->department_name;
$testTable->save();
return redirect('/test_table');
}
}