21 lines
No EOL
421 B
PHP
21 lines
No EOL
421 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TicketComment extends Model {
|
|
protected $fillable = [
|
|
'ticket_id', 'user_id', 'ticketcomment'
|
|
];
|
|
|
|
public function ticketcategory(){
|
|
return $this->belongsTo(TicketCategory::class);}
|
|
|
|
public function ticket(){
|
|
return $this->belongsTo(Ticket::class);}
|
|
|
|
public function user(){
|
|
return $this->belongsTo(User::class);}
|
|
}
|
|
|