@@ -92,11 +92,11 @@ public function store(Request $request, string $shelfSlug = null)
9292 {
9393 $ this ->checkPermission ('book-create-all ' );
9494 $ validated = $ this ->validate ($ request , [
95- 'name ' => ['required ' , 'string ' , 'max:255 ' ],
96- 'description ' => ['string ' , 'max:1000 ' ],
97- 'image ' => array_merge (['nullable ' ], $ this ->getImageValidationRules ()),
98- 'tags ' => ['array ' ],
99- 'default_template ' => ['nullable ' , 'integer ' ],
95+ 'name ' => ['required ' , 'string ' , 'max:255 ' ],
96+ 'description ' => ['string ' , 'max:1000 ' ],
97+ 'image ' => array_merge (['nullable ' ], $ this ->getImageValidationRules ()),
98+ 'tags ' => ['array ' ],
99+ 'default_template_id ' => ['nullable ' , 'integer ' ],
100100 ]);
101101
102102 $ bookshelf = null ;
@@ -167,11 +167,11 @@ public function update(Request $request, string $slug)
167167 $ this ->checkOwnablePermission ('book-update ' , $ book );
168168
169169 $ validated = $ this ->validate ($ request , [
170- 'name ' => ['required ' , 'string ' , 'max:255 ' ],
171- 'description ' => ['string ' , 'max:1000 ' ],
172- 'image ' => array_merge (['nullable ' ], $ this ->getImageValidationRules ()),
173- 'tags ' => ['array ' ],
174- 'default_template ' => ['nullable ' , 'integer ' ],
170+ 'name ' => ['required ' , 'string ' , 'max:255 ' ],
171+ 'description ' => ['string ' , 'max:1000 ' ],
172+ 'image ' => array_merge (['nullable ' ], $ this ->getImageValidationRules ()),
173+ 'tags ' => ['array ' ],
174+ 'default_template_id ' => ['nullable ' , 'integer ' ],
175175 ]);
176176
177177 if ($ request ->has ('image_reset ' )) {
0 commit comments