%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/camillo/camillo-api-master/app/Http/Requests/
Upload File :
Create Path :
Current File : //var/www/html/camillo/camillo-api-master/app/Http/Requests/CommunicationRequest.php

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CommunicationRequest 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 [
            'subject' => 'string',
            'message' => 'string',
            'minor_id' => 'integer',
            'receivers' => 'array',
            'classroom_id' => 'required|exists:classrooms,id',
            'notify' => 'sometimes|boolean'
        ];
    }
}

Zerion Mini Shell 1.0