15 lines
255 B
PHP
15 lines
255 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TicketCategory extends Model
|
|
{
|
|
protected $fillable = ['name'];
|
|
|
|
public function tickets()
|
|
{
|
|
return $this->hasMany(Ticket::class,'ticketcategory_id');
|
|
}
|
|
}
|