Trees in the bible are representations of powerful spirit creatures, sons of God and their family 'tree', religions, and peoples and descendants. Many times spirit creatures/religions/peoples go very close hand in hand.
Some examples of this are the tree of life and tree of knowledge in Eden. You see this very evident in Ezekiel 31:5-9 "That is why it grew higher in its stature than all the [other] trees of the field. “‘And its boughs kept multiplying, and its branches continued getting longer because of much water in its watercourses. 6 On its boughs all the flying creatures of the heavens made their nests, and under its branches all the wild beasts of the field gave birth, and in its shade all the populous nations would dwell. 7 And it came to be pretty in its greatness, in the length of its foliage, for its root system proved to be over many waters. 8 [Other] cedars were no match for it in the garden of God. As for juniper trees, they bore no resemblance as respects its boughs. And plane trees themselves did not prove to be like it in branches. No [other] tree in the garden of God resembled it in its prettiness. 9 Pretty is the way that I made it in the abundance of its foliage, and all the [other] trees of E′den that were in the garden of the [true] God kept envying it.’
Abraham himself was in Genesis 13:18-"So A′bram continued to live in tents. Later on he came and dwelt among the big trees of Mam′re"
Now a fig tree, in the bible it speaks of olive trees produing oil, of the vine in the vineyards, all these things have specific meanings and mean specific people, creatures, etc.
James 3:12 - My brothers, a fig tree cannot produce olives or a vine figs, can it?
In John 1:48 - “Before Philip called you, while you were under the fig tree" - THIS IS HUGE, and quite symbolic......read it in context, just posted the main point, before this person was called, he was 'under the fig tree'. Which would mean either a different god, faith, nation, peoples.
The fig tree represents a god,faith,nation, or peoples who were not producing good fruits (think of the fruitages of the spirit), and so Jesus cursed it, and this tree, this god,faith,nation,or peoples was to wither up and die.