The PHP framework Laravel allows to make an API and a website on the same application. As both of them will communicate with the same database, I was asking myself what is better between consuming my own API for my website and making a DAO proper to the website.
What do you suggest?
I'm merely taking Laravel as an example, it could be any other web framework.
Thank you for your help.