first push

This commit is contained in:
2020-09-11 16:26:01 +08:00
commit fd2e97e190
1455 changed files with 358156 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Http\Controllers;
use App\Models\Advert;
use App\Models\File;
class IndexController extends Controller
{
/**
* Notes: 首页
* @Author: 玄尘
* @Date : 2020/6/1 9:11
*/
public function index()
{
$adverts = Advert::where('category_id', 7)->latest()->get();
$file = File::where('status', 1)->latest()->first();
return view('index.index', compact('adverts', 'file'));
}
}