このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/app/Http/Controllers/ExampleController.php

37 行
971 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class ExampleController extends Controller {
public function __contruct() {
// Init SQL.
}
public function getUsers() {
// Select all users from the database, and return the results.
}
public function getUser($id) {
// Select a specific user from the database, and return the result.
}
public function addUser(Request $request) {
// Insert a specific user into the database, and return the result.
}
public function editUser(Request $request) {
// Update a specific user in the database, and return the result.
}
public function deleteUser(Request $request) {
// Delete a specific user from the database, and return the result.
}
public function browse(Request $request) {
// If needed, set a fuckton of stuff, and return the desired results.
}
}