#A table with minimum rows.

5 messages · Page 1 of 1 (latest)

worldly prism
#

Hello, I have a question.

Is it possible to have a table where it show 5 rows even if there is not enough to fill it?
example: I want to have a table where, if there is only 1 row from the sql, it will render even empty rows until it has 5 rows.

Is this posible?

scenic tapirBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

mossy plaza
#

Simple answer... no.

But you could use sushi if you just want to render date, where you get the data and if count is < 5 then add dummy rows

worldly prism
#

shame, but my experience with sushi is that it is primarily used for api's, does it still work with scopes, eloquent relations and whereHas functions?

mossy plaza
#

Sushi is use for anything, if you want to then add a query within it instead of getting an API then yes.