laravel-audit

NoFileUploads extends Check
in package

Checks if the `file_uploads` directive is enabled.

If your application is not using file uploads, and say the only data the user will enter / upload is forms that do not require any document attachments, file_uploads should be turned off.

Table of Contents

Methods

check()  : bool
Function to check against. This is used by the execute() function to check if a positive or negative result is returned.
execute()  : CheckResult
This executes the check and returns a positive result or the result of getError(). You can overwrite this to implement more complex checks.
getError()  : CheckResult
This value is returned if check() fails.
getGroup()  : string
Group of the check to partition the results.
getName()  : string
Name of the check to identify the result.

Methods

check()

Function to check against. This is used by the execute() function to check if a positive or negative result is returned.

public check() : bool
Return values
bool

execute()

This executes the check and returns a positive result or the result of getError(). You can overwrite this to implement more complex checks.

public execute() : CheckResult
Tags
see
Check::getError()
Return values
CheckResult

getGroup()

Group of the check to partition the results.

public getGroup() : string
Return values
string

getName()

Name of the check to identify the result.

public getName() : string
Return values
string

        
On this page

Search results