done crud spatial plannings

This commit is contained in:
arifal
2025-02-20 15:35:06 +07:00
parent 54146c8c08
commit 7a56735099
19 changed files with 788 additions and 51 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ExcelUploadRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
"file" => "required|file|mimes:xlsx,xls|max:102400"
];
}
}

View File

@@ -29,7 +29,7 @@ class SpatialPlanningsRequest extends FormRequest
'luas' => ['required','numeric','regex:/^\d{1,16}(\.\d{1,2})?$/'],
'lokasi' => ['required','string'],
'nomor' => ['required','string','max:255',Rule::unique('spatial_plannings')->ignore($this->id)],
'tanggal' => ['required','date'],
'sp_date' => ['required','date'],
];
}
}