Files
InvoiceShelf/app/Http/Requests/CompanySettingRequest.php
Darko Gjorgjijoski f52b73f517 Invoice time support (#269)
* Changed invoice date to datetime

* Fixed code style errors

* Update TimeFormatsController.php

* Update TimeFormatter.php

* Update TimeFormatsController namespace

* Fix missing comma in language file

* Fix formatting

---------

Co-authored-by: troky <troky2001@yahoo.com>
2025-01-12 13:32:47 +01:00

53 lines
1.1 KiB
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CompanySettingRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'currency' => [
'required',
],
'time_zone' => [
'required',
],
'language' => [
'required',
],
'fiscal_year' => [
'required',
],
'moment_date_format' => [
'required',
],
'carbon_date_format' => [
'required',
],
'moment_time_format' => [
'required',
],
'carbon_time_format' => [
'required',
],
'invoice_use_time' => [
'required',
],
];
}
}