File tree 4 files changed +34
-0
lines changed
4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,13 @@ public function hasMorePages();
99
99
*/
100
100
public function isEmpty ();
101
101
102
+ /**
103
+ * Determine if the list of items is not empty.
104
+ *
105
+ * @return bool
106
+ */
107
+ public function isNotEmpty ();
108
+
102
109
/**
103
110
* Render the paginator using a given view.
104
111
*
Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ public function setFormat($format = ':message');
84
84
*/
85
85
public function isEmpty ();
86
86
87
+ /**
88
+ * Determine if the message bag has any messages.
89
+ *
90
+ * @return bool
91
+ */
92
+ public function isNotEmpty ();
93
+
87
94
/**
88
95
* Get the number of messages in the container.
89
96
*
Original file line number Diff line number Diff line change @@ -465,6 +465,16 @@ public function isEmpty()
465
465
return $ this ->items ->isEmpty ();
466
466
}
467
467
468
+ /**
469
+ * Determine if the list of items is not empty.
470
+ *
471
+ * @return bool
472
+ */
473
+ public function isNotEmpty ()
474
+ {
475
+ return $ this ->items ->isNotEmpty ();
476
+ }
477
+
468
478
/**
469
479
* Get the number of items for the current page.
470
480
*
Original file line number Diff line number Diff line change @@ -321,6 +321,16 @@ public function isEmpty()
321
321
return ! $ this ->any ();
322
322
}
323
323
324
+ /**
325
+ * Determine if the message bag has any messages.
326
+ *
327
+ * @return bool
328
+ */
329
+ public function isNotEmpty ()
330
+ {
331
+ return $ this ->any ();
332
+ }
333
+
324
334
/**
325
335
* Determine if the message bag has any messages.
326
336
*
You can’t perform that action at this time.
0 commit comments