1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-02-25 19:53:10 +01:00
LinkAce/app/Http/Requests/NoteStoreRequest.php

33 lines
584 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class NoteStoreRequest 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 [
'link_id' => 'required',
'note' => 'required',
'is_private' => 'boolean',
];
}
}