Answers for "laravel select only some columns relationship"

PHP
0

laravel select only some columns relationship

public function post()
   {
      return $this->hasMany(Post::class)->select(['id','user_id']);
   }
Posted by: Guest on September-13-2021

Code answers related to "laravel select only some columns relationship"

Browse Popular Code Answers by Language