Answers for "relationship on the base of condition in laravel"

PHP
0

relationship on the base of condition in laravel

public function videos() {
    $instance =$this->hasMany('Video');
    $instance->getQuery()->where('available','=', 1);
    return $instance
}
Posted by: Guest on January-16-2022

Code answers related to "relationship on the base of condition in laravel"

Browse Popular Code Answers by Language