git commit "complete province and city management with ajax"
This commit is contained in:
@@ -12,7 +12,7 @@ class CityStoreRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -23,7 +23,15 @@ class CityStoreRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'province_id'=>['required'],
|
||||
|
||||
'name'=>[
|
||||
'required',
|
||||
'string',
|
||||
'max:255'
|
||||
]
|
||||
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user