Categoria: PHP

Falhas no PHP

Várias vulnerabilidades no PHP podem permitir a execução arbitrária de códigos NÚMERO CONSULTIVO MS-ISAC: 2019-087 DATA (S) EMITIDA (S): 09/03/2019 VISÃO GLOBAL: Várias vulnerabilidades foram descobertas no PHP, a mais grave das quais poderia...

10 Laravel Eloquent tips and tricks

1. Automatic Model Validation It can sometimes be convenient to automatically validate your model when it gets created or updated. This is very easily achieved with Laravel through the use of Model events. class...

Linux / Unix: Restart PHP Service Command

Linux / Unix: Restart PHP Service Command PHP is associated with either your web-server or external FastCGI process manager. In most cases you just need to restart web-server such as Apache / Nginx /...

LaraAdmin 1.0

Laravel PHP Framework “php”: “>=7.0.0” “laravel/framework”: “5.5.*”, LaraAdmin 1.0 LaraAdmin 1.0 composer install php artisan la:install sudo chmod -R 777 storage/ bootstrap/ database/migrations/ Enable Less to CSS (Optional) If you want to make UI...

Laravel Eloquent – Attach vs Sync

Qual é a diferença entre attach () e sync () no Eloquent ORM? attach(): Insert related models when working with many-to-many relations No array parameter is expected Example: $user = User::find(1); $user->roles()->attach(1); sync() Similar...