Prayer is something individuals do to ask for, or give thanks for, a want or a sought after or favorable change. There are a lot of different ways to pray; but they all involve thinking of what you require.
Individuals utilizing the Law of Attraction are practicing the same principle; they're thinking of a want, or a sought after outcome, in the way they trust will give them the best chance of experiencing it.
There are a lot of different ways to view the process of turning our ideas into realities, or experiencing them in the tangible world; but they all involve thinking of what you wish.