<?php

namespace App;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class CaseRequest
 * @mixin Builder
 * @property mixed company_request_topic_id
 * @package App
 */
class CompanyRequest extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'user_id',
        'company_request_topic_id',
        'name',
        'email',
        'phone',
        'request_type',
        'details',
        'requests',
        'files',
    ];

    protected $casts = ['files' => 'array'];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

}
