摘要:
1 基础路由写法 Route::get('/index',function (){ return 'hello word'; });//http://127.0.0.1:8000/index 2、match 接收指定的提交方式 Route::match(['get','post'],'match', 阅读全文
摘要:
public function index() { $topics = Topic::paginate(30); return view('topics.index', compact('topics')); } 一对一关联模型 所有的 ORM 关联数据读取中都存在此问题,新手很容易踩到坑。进而导 阅读全文