Init UserController

This commit is contained in:
NoAvatar 2024-10-17 04:53:02 +10:00
parent 75fa64b14f
commit 6f41446d55

View File

@ -0,0 +1,53 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
return response("Get all users");
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
return response("User store with data: " . $request->json());
}
/**
* Display the specified resource.
*/
public function show(string $id)
{
//
return response("User with id " . $id);
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id)
{
//
return response("Update user " . $id);
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id)
{
//
return response("Destroy user " . $id);
}
}