firefly-iii/app/Http/Requests/AttachmentFormRequest.php

38 lines
609 B
PHP
Raw Normal View History

2015-07-19 02:37:28 -05:00
<?php
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
2015-07-19 02:37:28 -05:00
namespace FireflyIII\Http\Requests;
use Auth;
/**
* Class AttachmentFormRequest
*
2016-02-04 00:28:39 -06:00
*
2015-07-19 02:37:28 -05:00
* @package FireflyIII\Http\Requests
*/
class AttachmentFormRequest extends Request
{
/**
* @return bool
*/
public function authorize()
{
// Only allow logged in users
return Auth::check();
}
/**
* @return array
*/
public function rules()
{
return [
'title' => 'between:1,255',
'description' => 'between:1,65536',
'notes' => 'between:1,65536',
];
}
}