Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 2 |
| StoreProduct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 2 |
| authorize | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| rules | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace Mtc\Shop\Http\Requests\Admin; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class StoreProduct 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 [ | |
| 'node.title' => 'required|max:255', | |
| 'node.description' => 'required', | |
| 'item.stock_enabled' => 'boolean' | |
| ]; | |
| } | |
| } |