Client.php 363 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Models;
  3. # use Illuminate\Database\Eloquent\Model;
  4. class Client extends Model
  5. {
  6. protected $table = 'client';
  7. public function displayName() {
  8. return $this->name_last . ', '. $this->name_first;
  9. }
  10. public function prosInMeetingWith() {
  11. return Pro::where('in_meeting_with_client_id', $this->id)->get();
  12. }
  13. }