MeetingParticipant.php 415 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class MeetingParticipant extends Model
  5. {
  6. protected $table = "meeting_participant";
  7. public function proName() {
  8. if($this->guest_or_pro === 'PRO' && $this->pro_id) {
  9. $pro = Pro::find($this->pro_id);
  10. if($pro) {
  11. return $pro->name_display;
  12. }
  13. }
  14. return '';
  15. }
  16. }