mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
18 lines
358 B
PHP
18 lines
358 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use App\Models\Notice;
|
||
|
use App\Utils\Helper;
|
||
|
|
||
|
class NoticeController extends Controller
|
||
|
{
|
||
|
public function index (Request $request) {
|
||
|
return response([
|
||
|
'data' => Notice::orderBy('created_at', 'DESC')->first()
|
||
|
]);
|
||
|
}
|
||
|
}
|