Make a contoller and then save it with store functionIt will save the file in storate/apiDocs folderWe should not save the file inside database . You should save the path of the file to the database and then give that as to accessible url.