22 lines
437 B
PHP
22 lines
437 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class HelloWorldController extends Controller
|
|
{
|
|
|
|
public function __construct() {
|
|
}
|
|
|
|
public function getHelloWorld() {
|
|
$words = DB::table('hello')->where('id', 1)->get();
|
|
return json_encode($words);
|
|
//return "ok";
|
|
}
|
|
}
|