阶段性更新

This commit is contained in:
2021-10-09 13:12:45 +08:00
parent ae95c5540b
commit d89bc90cef
248 changed files with 8676 additions and 5682 deletions

View File

@@ -17,12 +17,11 @@ class IndexController extends Controller
*/
public function index()
{
//研究中心
$links = Link::get();
$lt_adverts = Advert::where('category_id', 175)->latest('sort')->get();
$top_adverts = Advert::where('category_id', 33)->latest('sort')->first();
$cent_adverts = Advert::where('category_id', 33)->latest('sort')->first();
return view('index.index', compact('links', 'lt_adverts'));
return view('index.index', compact('top_adverts', 'top_adverts'));
}
//通用获取文章