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

34 lines
667 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreLaporanRequest 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 [
'masyarakat_id' => 'required',
'tanggal' => 'required',
'deskripsi' => 'required',
'gambar' => 'required|image|mimes:jpeg,png'
];
}
}