教程 1 的一些分享
1. 抽离表单验证
2. 代码优化
一些能不用if的地方用三元运算符替代
$feed_items = Auth::check() ? Auth::user()->feed()->paginate(30) : [];
推荐文章: