I have a requirement that i have to run a cron job or say a laravel 5 in every two minute. This command or job will receive some data from controller and then insert into the database, if not receive then it should skip or insert dummy data just for testing purpose.
I know how to create command, but stuck how to pass data from controller or receive data in command. I really need help in this regard.
Please friend help me, i need to finish it as soon as possible. If someone require further clarification, please let me know.