<?php
namespace App\Models\Tally;

use App\Helpers\Helper;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\User;
use Auth;
use DB;

class Tysummarysettings extends Model
{
    protected $dates = [''];
    protected $table = 'tally_summary_setting';
    protected $rules = array();
    protected $injectUniqueIdentifier = true;
    protected $fillable = [];

    public static function fetchSettingForSeller($seller_id, $module){
    	
    	return Tysummarysettings::where('seller_id', $seller_id)->where('module', $module)->whereNull('deleted_at')->first();
    }
}
