Answer the question
In order to leave comments, you need to log in
How to embed a separate file with code in laravel?
Good afternoon!
There is a project on Laravel and there is a separate file with code. This file uses a separate connection to the database, and this very database is updated. The file was attached to the cron and called every minute. This, of course, is very inconvenient, and I want to combine this file with the project. Those. add it to laravel, and skull: $schedule add its method to cron. What is the easiest way to do this? Of course, after connecting the file to Laravel, you will need to remove a separate connection and make a connection to the database through use DB;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question