akaunting/app/Http/Requests/Common/Notification.php

32 lines
541 B
PHP
Raw Normal View History

2018-11-17 13:13:15 +03:00
<?php
namespace App\Http\Requests\Common;
use App\Http\Requests\Request;
class Notification extends Request
{
/**
* 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 [
'path' => 'required|string',
'id' => 'required|integer',
];
}
}