Pārlūkot izejas kodu

Update CollectionController, increase collection limit from 18 to 50

Daniel Supernault 5 gadi atpakaļ
vecāks
revīzija
c2826fd3fd
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      app/Http/Controllers/CollectionController.php

+ 2 - 2
app/Http/Controllers/CollectionController.php

@@ -121,8 +121,8 @@ class CollectionController extends Controller
         $collection = Collection::whereProfileId($profileId)->findOrFail($collectionId);
         $collection = Collection::whereProfileId($profileId)->findOrFail($collectionId);
         $count = $collection->items()->count();
         $count = $collection->items()->count();
 
 
-        if($count >= 18) {
-            abort(400, 'You can only add 18 posts per collection');
+        if($count >= 50) {
+            abort(400, 'You can only add 50 posts per collection');
         }
         }
 
 
         $status = Status::whereScope('public')
         $status = Status::whereScope('public')