| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 17 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 26 | public function rules()  | 
            ||
| 27 |     { | 
            ||
| 28 | return [  | 
            ||
| 29 | 'category_id' => ['nullable', new ValidateCategoryId],  | 
            ||
| 30 | 'user_id' => 'nullable',  | 
            ||
| 31 | 'tags' => ['nullable', new ValidateTagIds],  | 
            ||
| 32 | 'title' => 'required|string|max:150',  | 
            ||
| 33 | 'sub_title' => 'nullable|string',  | 
            ||
| 34 | 'slug' => 'nullable|string',  | 
            ||
| 35 | 'excerpt' => 'nullable|string',  | 
            ||
| 36 | 'content' => 'nullable',  | 
            ||
| 37 | 'allow_comments' => 'nullable|boolean',  | 
            ||
| 38 | 'allow_guest_comments' => 'nullable|boolean',  | 
            ||
| 39 | 'status' => 'nullable',  | 
            ||
| 40 | 'published_at' => 'string|nullable',  | 
            ||
| 41 | ];  | 
            ||
| 42 | }  | 
            ||
| 43 | }  | 
            ||
| 44 |