Eshop-Laravel/app/Http/Requests/ContentRequest.php

24 lines
393 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
<?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',
];
}
}