- Download Mailhog from Github releases
- Copy and rename the downloaded file to
C:\wamp64\bin\mailhog.exe
Edit following files :
C:\wamp64\bin\mailhog.exe
Edit following files :
const object2url = require('./object2url') | |
const testData = { | |
name: "John", | |
age: 13, | |
skills: ['games', 'programming', 'reading', 'singing'], | |
invests: { | |
education: [120.3, 50.5], | |
kids: 70, | |
optical: { |
<?php | |
/* | |
* Display Laravel queries in PHP files (like the DebugBar but without view) | |
*/ | |
/** | |
* 1. Create the helper | |
*/ |
Pour vous aider dans la conception de vos formulaires ou affichage de configuration de module, il existe un controller caché AdminPatterns
qui vous donne tous les champs possibles.
Il est accessible dans l'administration à l'adresse https://website.com/admin_xxxxxx/index.php?controller=AdminPatterns et le controller se trouve dans /controllers/admin/AdminPatternsController.php
Gagner du temps lors la personnalisation des fichiers pdf ( factures / livraisons … ) 👉 https://www.h-hennes.fr/blog/2020/07/13/prestashop-gagnez-du-temps-lors-la-personnalisation-des-fichiers-pdf-factures-livraisons/ (ce site est une mine d'or au passage)
<?php | |
/** | |
* Wrapper to handle JSON errors and resolve UTF-8 errors | |
* | |
* @param mixed | |
* @param int | |
* @param int | |
* @param bool | |
* @return string|false |
When defining an accessor you can access to original value using this to skip mutator :
$model->getRawOriginal('name');
<?php | |
/** | |
* Search value through multi dimensional array by column key and return first found sub array or corresponding key. | |
* This method preserves the original array keys. | |
* | |
* Multiple returns : | |
* - The sub-array if value is found | |
* - A mixed value corresponding to the key (if $onlyKey is set to true) | |
* - false if an error occured or value is not found |
<?php | |
namespace App\Models; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Database\Eloquent\Model; | |
class Company extends Model | |
{ | |
/** | |
* Table schema is : |
I needed to call a routine with Laravel but I encountered the MySQL "Packets out of order" error.
I've found an answer on this StackOverflow question : $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
I have created a trait that can call a stored procedure and log it in Debugbar :
<?php
namespace App\Models\Traits;