mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-30 21:02:55 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			471 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			471 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace $NAMESPACE$;
 | |
| 
 | |
| class Create$CLASS$Request extends $CLASS$Request
 | |
| {
 | |
|     /**
 | |
|      * Determine if the user is authorized to make this request.
 | |
|      *
 | |
|      * @return bool
 | |
|      */
 | |
|     public function authorize()
 | |
|     {
 | |
|         return $this->user()->can('create', '$LOWER_NAME$');
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Get the validation rules that apply to the request.
 | |
|      *
 | |
|      * @return array
 | |
|      */
 | |
|     public function rules()
 | |
|     {
 | |
|         return [
 | |
| 
 | |
|         ];
 | |
|     }
 | |
| }
 |