mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Made helpers call full namespace (tho I have no idea why this was necessary)
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1b1b54fbf4
commit
76506dabbf
|
@ -21,7 +21,7 @@ class AssetFileRequest extends Request
|
||||||
*/
|
*/
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
$max_file_size = Helper::file_upload_max_size();
|
$max_file_size = \App\Helpers\Helper::file_upload_max_size();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'file.*' => 'required|mimes:png,gif,jpg,svg,jpeg,doc,docx,pdf,txt,zip,rar,xls,xlsx,lic,xml,rtf,webp|max:'.$max_file_size,
|
'file.*' => 'required|mimes:png,gif,jpg,svg,jpeg,doc,docx,pdf,txt,zip,rar,xls,xlsx,lic,xml,rtf,webp|max:'.$max_file_size,
|
||||||
|
|
Loading…
Reference in a new issue