What is the meaning of Lay_a_foundation?

Used other than figuratively or idiomatically: see lay, foundation.

To elicit information from a witness to show that the witness has knowledge of a matter before the witness testifies to the matter itself.

To make a start.

Source: wiktionary.org