MIF_E31210257/bangunan testing/app/Http/Requests/AkunRequest.php

32 lines
587 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AkunRequest 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 [
'nama_akun' => 'required|string|unique:akun|max:100',
'kode_akun' => 'required|string|max:5',
];
}
}