Laravel stores the logs of the project in the file “storage/logs/laravel.log”. If you don’t rotate this file can increase its size a lot, using the most part of the storage, causing problems with a full disk.
Tag: laravel
Laravel, WordPress e a API REST: usando WordPress como xestor de contidos en aplicacións Laravel. WordCamp Lisboa 2019
Neste enlace (PDF, 1,04 MB, galego) deixo as transparencias da presentación «Laravel, WordPress e a API REST: usando WordPress como xestor de contidos en aplicacións Laravel» da WordCamp Lisboa do día 18 de maio de 2019. A proba de concepto podedes encontrala en GitHub, no seguinte enlace: Laravel, WordPress and the REST API.
[InvalidArgumentException] Composer could not find a composer.json file
I was trying to create a new Laravel project when I get this error:
Execute and test only one method with Laravel Dusk
When you are running Laravel Dusk tests from the terminal, with the command $ php artisan dusk sometimes you need to execute and test only one method. You can do it with the “–filter” parameter and the name of the method: $ php artisan dusk –filter testUserInsertBlankSpacesAndThePasswordDoesNotChange
“403 Invalid signature” when I try to verify an email in Laravel
When I try to verify an email in Laravel I get the error: 403 Invalid signature The problem is a misconfiguration in the nginx configuration file (the Server Blocks). The bad configuration was location / { try_files $uri $uri/ /index.php?q=$uri&$args; } The good configuration is location / { try_files $uri $uri/… Continue reading “403 Invalid signature” when I try to verify an email in Laravel
Installing and configuring a supervisor in Debian to execute a Laravel queue worker
I need to install and configure a supervisor in Debian to continuous execute a queue worker.
Instalar dos versiones de PHP en Debian 8 o en Debian 9
En un servidor que tengo con Debian 8 (esto mismo es aplicable a Debian 9) necesito tener PHP 7.0 y PHP 7.3 para poder actualizar las instalaciones que están con PHP 7.0 sin tener interrumpido el servicio.
setlocale en PHP no cambia el idioma a español
setlocale() es una función PHP que permite establecer el idioma que quieres usar en determinadas funciones. setlocale ( int $category , string $locale [, string $… ] ) : string
UUID en Laravel
Un UUID (identificador único universal o universally unique identifier) es un número de 16 bytes (32 dígitos hexadecimales), referenciado habitualmente mediante cinco grupos separados por guiones 8-4-4-4-12, lo que genera un total de 36 caracteres (32 dígitos y 4 guiones), que se encuentra estandarizado en el RFC 4122. Se puede usar en múltiples ámbitos: claves primarias en tablas… Continue reading UUID en Laravel
La semana PHP, mi nueva lista de correo semanal
Acabo de crear como proyecto personal una lista de correo semanal con contenidos relacionados con PHP seleccionados manualmente por mi. Será una colección de noticias, tutoriales e información relevante sobre PHP y su ecosistema: Laravel, Symfony, WordPress, Drupal,… Si quieres apuntarte puedes hacerlo desde este enlace https://www.lasemanaphp.com