21 行
441 B
PHP
21 行
441 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use Illuminate\Support\Facades\Log;
|
||
|
|
||
|
class UserController 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.
|
||
|
}
|
||
|
}
|