Lazer\Classes\Helpers\Validate::exists PHP Method

exists() public method

Checking that Table and Config exists and throw exceptions if not
public exists ( ) : boolean
return boolean
    public function exists()
    {
        if (!Data::table($this->name)->exists()) {
            throw new LazerException('Table "' . $this->name . '" does not exists');
        }
        if (!Config::table($this->name)->exists()) {
            throw new LazerException('Config "' . $this->name . '" does not exists');
        }
        return TRUE;
    }