mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 21:44:51 +00:00
* 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>
53 lines
1.1 KiB
PHP
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',
|
|
],
|
|
];
|
|
}
|
|
}
|