Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2つの条件に一致するデータベース内の行数をカウントしています
$rows = Jelly::select('brief')->where('creator_id', '=', $this->view->user->id, 'and', 'name', '=', $name)->count();
私はずっと前にこれをしました、そしてその方法を忘れました。これが正しいやり方かどうか疑問に思いました。
Googleで答えが見つからないようです。
$rows = Jelly::select('brief')->where('creator_id', '=', $this->view->user->id )->where('name', '=', $name)->count();