
PK 
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Tax extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'taxes';
use SoftDeletes;
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ['deleted_at'];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'vender_id','category_id','tax_name','tax_gst','tax_cst','tax_igst','isactive','isdelete','addedby','created_at','updated_at','deleted_at','visitor'
];
/**
* Scope a query to only include active users.
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeActive($query)
{
return $query->where('isactive', 1);
}
/**
* Get the index name for the model.
*
* @return string
*/
public function category()
{
return $this->belongsTo('App\Category');
}
}


PK 99