39 lines
		
	
	
		
			965 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			965 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
<?php
 | 
						|
 | 
						|
namespace Modules\Admin\app\Http\Requests;
 | 
						|
 | 
						|
use Illuminate\Foundation\Http\FormRequest;
 | 
						|
 | 
						|
class SettingRequest extends FormRequest
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Get the validation rules that apply to the request.
 | 
						|
     */
 | 
						|
    public function rules(): array
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            'page_title' => 'max:255',
 | 
						|
            'email' => 'max:100',
 | 
						|
            'phone' => 'max:20',
 | 
						|
            'meta_title' => 'max:255',
 | 
						|
            'meta_description' => 'max:255',
 | 
						|
            'meta_keyword' => 'max:255',
 | 
						|
            'facebook' => 'max:255',
 | 
						|
            'twitter' => 'max:255',
 | 
						|
            'linkedin' => 'max:255',
 | 
						|
            'license' => 'max:255',
 | 
						|
            'address' => 'max:255',
 | 
						|
            'favicon' => 'file|mimes:jpeg,jpg,png,gif',
 | 
						|
            'logo' => 'file|mimes:jpeg,jpg,png,gif'
 | 
						|
        ];
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Determine if the user is authorized to make this request.
 | 
						|
     */
 | 
						|
    public function authorize(): bool
 | 
						|
    {
 | 
						|
        return true;
 | 
						|
    }
 | 
						|
}
 |