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.
32 lines
568 B
PHP
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',
|
|
];
|
|
}
|
|
}
|