. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * Class EmailFormRequest. */ class EmailFormRequest extends Request { /** * @return bool */ public function authorize() { // Only allow logged in users return auth()->check(); } /** * @return array */ public function rules() { // fixed return [ 'email' => 'required|email', ]; } }