mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
4e9bc0552d
- Remove Livewire auto-publish from composer.json - Replace old DocumentController with DownloadsController - Rename DownloadsTable & downloads-table to DocumentsTable & documents-table - New ShowDocumentRequest for displaying documents - Change authorize() with DownloadMultipleDocumentsRequest - Change route in PortalComposer - Update Livewire assets - Remove old documents routes
41 lines
802 B
PHP
41 lines
802 B
PHP
<?php
|
|
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Http\Requests\Document;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class DownloadMultipleDocumentsRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'file_hash' => ['required'],
|
|
];
|
|
}
|
|
}
|