protected function validateFileType($name)
    {
        $extension = strtolower(File::extension($name));

        if (!in_array($extension, $this->assetExtensions)) {
            return false;
        }

        return true;
    }
protected function validateFileType($name)
    {
        $extension = strtolower(File::extension($name));

        if (!in_array($extension, $this->assetExtensions)) {
            return false;
        }

        return true;
    }
protected function validateFileType ( $ name ) { $ extension = strtolower ( File :: extension ( $ name ) ) ; if ( ! in_array ( $ extension , $ this -> assetExtensions ) ) { return false ; } return true ; }
Check for valid asset file extension
@param string
@return bool
Check for valid asset file extension