ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/a1tex.in/app/Model/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/a1tex.in/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');
    }
}

Zerion Mini Shell 1.0