Answers for "belongs to many select columns"

0

belongs to many select columns

public function photos()
{
  return $this->belongsToMany('Photo')->select(array('name', 'date'));
}
Posted by: Guest on April-18-2021

Browse Popular Code Answers by Language