How to use array in getTableQuery instead of Builder?

So i have an array somewhere, i want the table data is using the array instead of querying, how do i do that?
protected function getTableQuery(): Builder 
{
    // return Post::query(); 
    return [["name"=>"t1"]["name"=>"t2"]] // something like this?
} 
Was this page helpful?