JellyBool

17773 经验值

我按的是 command shift a ,然后输入 add method

你有这个 welcome 视图文件么?

那你可以这个样子:

$conditions = [
            ['status', '=', '1'],
            ['subscribed', '<>', '1'],
        ];
$users = User::where($conditions)->get();

根据条件去更新 $conditions 数组就好了

有的,你看那个视频下方的按钮那里就有

403 Forbidden...

这是你的空间设置问题吧,比如白名单或者是私有空间等,跟代码基本没什么关系

你直接判断一下就好了嘛:

@if(Auth::check())
// 现实你的关注按钮