May 27, 2020
0
Level 1
php artisan tinker run with node child process spawn
I know that this is the command for running a file in artisan tinker.
more test.php | php artisan tinker
I want to run this command with node js child process spawn.
var spawn = require('child_process').spawn;
var cmd = spawn('php',['artisan','tinker']);
but I can't figure out how i can run entire more test.php | php artisan tinker in spawn?
Please or to participate in this conversation.