src/Models/HCModel.php
public static function getFillableFields(bool $join = false)
    {
        $list = with(new static)->getFillable();

        if ($join)
        {
            //to use default sort_by command
            array_push($list, 'created_at');
            foreach ($list as &$value)
                $value = self::getTableName() . '.' . $value;
        }

        return $list;
    }
public static function getFillableFields(bool $join = false)
    {
        $list = with(new static)->getFillable();

        if ($join)
        {
            //to use default sort_by command
            array_push($list, 'created_at');
            foreach ($list as &$value)
                $value = self::getTableName() . '.' . $value;
        }

        return $list;
    }
public static function getFillableFields ( bool $ join = false ) { $ list = with ( new static ) -> getFillable ( ) ; if ( $ join ) { //to use default sort_by command array_push ( $ list , 'created_at' ) ; foreach ( $ list as & $ value ) $ value = self :: getTableName ( ) . '.' . $ value ; } return $ list ; }
Function which gets fillable fields array

@param bool $join
@return array
Function which gets fillable fields array