Files
Global-Jain/app/Http/Requests/Api/Sant/StoreSantRequest.php
2025-11-05 10:37:10 +05:30

44 lines
1.0 KiB
PHP

<?php
namespace App\Http\Requests\Api\Sant;
use App\Constant\Constant;
use Illuminate\Foundation\Http\FormRequest;
class StoreSantRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return Constant::STATUS_TRUE;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required',
// 'father_name' => 'required',
// 'mother_name' => 'required',
'gender' => 'required',
'avatar' => ['nullable','mimes:jpeg,png,jpg'],
// 'honor' => 'required',
'dharma_id' => 'required',
'sampraday_id' => 'required',
// 'birth_date' => 'required',
// 'diksha_date' => 'required',
// 'diksha_place' => 'required',
'about' => 'nullable'
];
}
}