Answers for "laravel has many count"

PHP
6

get count laravel

$count = Model::where('status','=','1')->count();
Posted by: Guest on May-12-2020
1

laravel has many

public function comments()
 {
   return $this->hasMany(Comment::class);
 }
Posted by: Guest on June-03-2021

Code answers related to "laravel has many count"

Browse Popular Code Answers by Language