ok
Direktori : /home2/selectio/www/3-idiots/app/Model/ |
Current File : //home2/selectio/www/3-idiots/app/Model/SupportTicket.php |
<?php namespace App\Model; use App\User; use Illuminate\Database\Eloquent\Model; class SupportTicket extends Model { protected $casts = [ 'customer_id' => 'integer', 'status' => 'string', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function conversations() { return $this->hasMany(SupportTicketConv::class); } public function customer() { return $this->belongsTo(User::class, 'customer_id'); } }