 aa08e774a1
			
		
	
	
		aa08e774a1
		
			
		
	
	
	
	
		
			
			* Add Nullable * Edit filament & AppServiceProvider * Pint * Patch tests * Actually patching tests * Actually patching tests * Remove length * Remove defaultStringLength * Let’s see the differences --------- Co-authored-by: Lance Pioch <git@lance.sh>
		
			
				
	
	
		
			18 lines
		
	
	
		
			400 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			400 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Http\Requests\Admin\Node;
 | |
| 
 | |
| use App\Http\Requests\Admin\AdminFormRequest;
 | |
| 
 | |
| class AllocationFormRequest extends AdminFormRequest
 | |
| {
 | |
|     public function rules(): array
 | |
|     {
 | |
|         return [
 | |
|             'allocation_ip' => 'required|string',
 | |
|             'allocation_alias' => 'sometimes|nullable|string|max:255',
 | |
|             'allocation_ports' => 'required|array',
 | |
|         ];
 | |
|     }
 | |
| }
 |