모든 종류의 시간! 내 문제의 본질은 다음과 같습니다. 두 가지 모델이 있습니다 Contact and PhoneNum! 모델의 관계 : 편집 접촉의 형태로 use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
protected $table = 'contacts';
Laravel CONCAT에 문제가 있습니다. DB 필드를 연결하지 않습니다. 내가 반환 된 데이터를 선택하면 그것은 더 fullName의 public function getAllPlayers()
{
$data = Player::select(DB::raw('CONCAT(familyName," ",firstName) AS fullName'))