S
S
suhuxa12017-07-28 12:31:20
Laravel
suhuxa1, 2017-07-28 12:31:20

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

1 answer(s)
V
vism, 2017-07-28
@vism

ctrl+c, ctrl+v

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question