This commit is contained in:
Sándor Máté Magony
2025-05-11 13:07:54 +02:00
parent ec057787fd
commit a85c207b44
13 changed files with 25 additions and 169 deletions

View File

@@ -8,17 +8,6 @@ use Illuminate\Support\Facades\Hash;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
$validatedData = $request->validate([
@@ -34,7 +23,7 @@ class UserController extends Controller
'nev' => $validatedData['nev'],
'email' => $validatedData['email'],
'felh_nev' => $validatedData['felh_nev'],
'jelszo' => $validatedData['jelszo'], // Will be hashed by mutator
'jelszo' => $validatedData['jelszo'],
'is_admin' => $validatedData['is_admin'] ?? false
]);
@@ -49,28 +38,4 @@ class UserController extends Controller
], 500);
}
}
/**
* Display the specified resource.
*/
public function show(string $id)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id)
{
//
}
}