I am working with a laravel application and I instead of inputting just arguments and options, I want to know if there is a way where I can input files. I wish to import a lot of data from other APIs and I am using Guzzle to do that.
A lot of the times the same data is being imported at each database reset. Which is why I imported the data in a json file collection first and then I use that collection every time to insert the data in the database which saves the time to fetch the data each time from the other API.
Right now I am hard coding the file which is used but is there a way where I can fetch the file via the command line where I specify the arguments and options for the console command?