Files
monica/app/Http/Requests/People/NotesRequest.php
T
Régis FreydandGitHub 76c75ce6e7 Add inline notes editing and favorites for notes (#672)
Notes are now edited inline (with Vue.js) and can be marked as favorites.
Favorite notes will appear on the dashboard in a new tab.
2017-12-04 09:55:47 -05:00

32 lines
568 B
PHP

<?php
namespace App\Http\Requests\People;
use Illuminate\Foundation\Http\FormRequest;
class NotesRequest 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 [
'body' => 'required|string',
'is_favorited' => 'boolean|required',
];
}
}