TIF_E41201452/Website/app/Http/Requests/StoreMasyarakatRequest.php

36 lines
738 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreMasyarakatRequest 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<string, mixed>
*/
public function rules()
{
return [
'user_id' => 'required',
'jenis_kelamin' => 'required',
'alamat' => 'required',
'tempat_lahir' => 'required',
'tanggal_lahir' => 'required',
'nohp' => 'required|numeric',
];
}
}