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… Continue reading Ejecutar un comando en Laravel en background y/o sin el usuario logueado
Category: laravel
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… Continue reading Laravel Homestead TTFB very high
Using Laravel Dusk with Vagrant Homestead
If you are using Laravel Homestead and you want to use Laravel Dusk to test your application, you can find some problems.
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.
There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox
I was starting Homestead, a Vagrant Virtual Machine and I get this error
Disable register in Laravel
Laravel 5.2+ give us a way to scaffold all of the routes, controllers and views we need for authentication with one command: php artisan make:auth
Laravel bash alias
In this post I explain how to add some useful Laravel bash alias in the bash shell, so you haven’t to type this long commands. I use this alias in the Homestead VM Vagrant machine.
Laravel ACL solutions
Some Laravel ACL (Access control list) solutions
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
Laravel. Models into its own folder
If you create an Eloquent Model in Laravel (v.gr., the “Company” model), using the command $ php artisan make:model Company the file is stored in the “App” folder.