mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	add mail sender in setting
This commit is contained in:
		| @ -14,7 +14,7 @@ class MailSenderRequest extends FormRequest | ||||
|      */ | ||||
|     public function authorize() | ||||
|     { | ||||
|         return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|  | ||||
							
								
								
									
										39
									
								
								app/Http/Requests/TestMailDriverRequest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								app/Http/Requests/TestMailDriverRequest.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | ||||
| <?php | ||||
|  | ||||
| namespace Crater\Http\Requests; | ||||
|  | ||||
| use Illuminate\Foundation\Http\FormRequest; | ||||
|  | ||||
| class TestMailDriverRequest 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 [ | ||||
|             'to' => [ | ||||
|                 'required', | ||||
|                 'email' | ||||
|             ], | ||||
|             'subject' => [ | ||||
|                 'required' | ||||
|             ], | ||||
|             'message' => [ | ||||
|                 'required' | ||||
|             ], | ||||
|         ]; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user