File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ trait HasVisibility
99{
1010 /**
1111 * Determine wheather if the model is visible
12- *
12+ *
1313 * @return \Illuminate\Database\Eloquent\Builder
1414 */
1515 public function scopeVisible (Builder $ builder )
@@ -19,11 +19,11 @@ public function scopeVisible(Builder $builder)
1919
2020 /**
2121 * Determine wheather if the model is hidden
22- *
22+ *
2323 * @return \Illuminate\Database\Eloquent\Builder
2424 */
2525 public function scopeHidden (Builder $ builder )
2626 {
2727 return $ builder ->where ('is_visible ' , Visibility::HIDDEN ->value );
2828 }
29- }
29+ }
Original file line number Diff line number Diff line change 2929 ]);
3030
3131 Category::factory ()->times (9 )->create ([
32- 'is_visible ' => false
32+ 'is_visible ' => false ,
3333 ]);
3434
3535 $ this ->assertEquals (Category::count (), 19 );
3636 $ this ->assertEquals (Category::visible ()->count (), 10 );
3737 $ this ->assertEquals (Category::hidden ()->count (), 9 );
3838});
39-
You can’t perform that action at this time.
0 commit comments