v2board/app/Http/Controllers/NoticeController.php

19 lines
361 B
PHP
Raw Normal View History

2019-12-12 13:45:46 +08:00
<?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
{
2020-01-11 13:36:52 +08:00
public function fetch(Request $request)
{
2019-12-12 13:45:46 +08:00
return response([
'data' => Notice::orderBy('created_at', 'DESC')->first()
]);
}
}