Attendize/app/Models/HelpTicketComment.php

59 lines
1.7 KiB
PHP
Raw Normal View History

2020-04-29 11:48:01 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class HelpTicketComment extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'help_ticket_comments';
// protected $primaryKey = 'id';
2020-04-29 12:55:49 +00:00
public $timestamps = true;
2020-04-29 11:48:01 +00:00
// protected $guarded = ['id'];
2020-04-29 12:55:49 +00:00
protected $fillable = ['text','attachment','parent_id','user_id','name','help_ticket_id'];
2020-04-29 11:48:01 +00:00
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
2020-04-29 12:55:49 +00:00
public function ticket(){
return $this->belongsTo(HelpTicket::class);
}
2020-04-29 11:48:01 +00:00
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}