Ejecutar un comando en Laravel en background y/o sin el usuario logueado

Cuando estoy en un entorno de test con aplicaciones en Laravel (esto es extrapolable a cualquier otro entorno de desarrollo y/o framework que disponga de una interfaz de línea o CLI), a veces ejecuto comandos cuya ejecución puede llevar bastante tiempo.

Un ejemplo claro es una migración con un seeder con un alto número de seeds, para probar la aplicación con un entorno sobrecargado de datos.

En este tipo de casos lo ideal es poder dejar el comando en background y poder cerrar la consola si es necesario.

Laravel Homestead TTFB very high

I use Laravel Homestead to develop on two machines. I use it because with this solution I have the same development environment in all my machines and in all machines of my coworkers.

Last Tuesday, with the monthly Microsoft update (I suppose), the HTTP responses starts to become very slow, with TTFB (time to the first byte) from 4 to 10 seconds.

Larevel error. The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths

If you are installing a new Larevel project and you get this error in the navigator

RuntimeException in compiled.php line 13506:
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

Laravel Factory. InvalidArgumentException with message ‘Unable to locate factory with name [default] [App\Model].’

If you are using the Laravel factories to populate the database with fake elements, when you add a new factory, v.gr. in the “\database\factories\ModelFactory.php”, ant try to execute it with the tinker app