mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 08:39:09 +08:00
21 lines
408 B
PHP
21 lines
408 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\User;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use App\Models\Notice;
|
|
use App\Utils\Helper;
|
|
|
|
class NoticeController extends Controller
|
|
{
|
|
public function fetch(Request $request)
|
|
{
|
|
return response([
|
|
'data' => Notice::orderBy('created_at', 'DESC')
|
|
->limit(5)
|
|
->get()
|
|
]);
|
|
}
|
|
}
|