M
M
Mo1she2018-09-06 12:00:13
Laravel
Mo1she, 2018-09-06 12:00:13

Running own laravel script from console?

I am using XMLReader to read data from a large XML file (10 GB) and insert it line by line into mysql database. In this case, I would like to use the Eloquent methods from Laravel. How can I run a php script using Laravel from a terminal?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2018-09-06
@Mo1she

https://laravel.com/docs/5.6/artisan#writing-commands

V
Vasily Pupkin, 2018-09-06
@HectorPrima

https://laravel.ru/docs/v5/bus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question