api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Vihar;
use Illuminate\Foundation\Http\FormRequest;
class StoreViharRequest 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 [
'sant_id' => 'exists:sants,id',
'from' => 'required',
'to' => 'required',
'start_date' => 'required|date_format:Y-m-d',
'start_time' => 'required|date_format:H:i'
];
}
}