<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\License;

/**
 * Class Role.
 */
class LicenseType extends Model
{
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'license_types';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['name','duration','status','licence_type'];

    public function license()
        {
            return $this->hasMany(License::class);
        } 

}
