PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
Tax
/
Http
/
Requests
<?php /** * @package TaxClassStoreRequest * @author TechVillage <support@techvill.org> * @contributor Al Mamun <[almamun.techvill@gmail.com]> * @created 28-07-2022 */ namespace Modules\Tax\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class TaxClassStoreRequest 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 [ 'name' => 'required|min:3|max:191', 'slug' => 'required|min:3|max:191|unique:tax_classes,slug', ]; } /** * Prepare the data for validation. * * @return void */ protected function prepareForValidation() { $this->merge([ 'slug' => \Str::slug($this->slug), ]); } }
[-] TaxRateUpdateRequest.php
[edit]
[+]
..
[-] TaxClassStoreRequest.php
[edit]
[-] TaxRateStoreRequest.php
[edit]
[-] TaxClassUpdateRequest.php
[edit]