Eshop-Laravel/app/Http/Requests/ContentRequest.php
2019-10-18 12:25:37 +03:00

23 lines
393 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;
class ContentRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'menu_id' => 'required',
'title' => 'required',
'article' => 'required',
];
}
}