Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

- j0eii

🎯
Focusing
View GitHub Profile
@j0eii
j0eii / HasCompositePrimaryKey.php
Created Jun 5, 2018
Laravel 5.0+ CompositePrimaryKey trait
View HasCompositePrimaryKey.php
<?php
namespace App\Behaviours\Eloquent;
use Illuminate\Database\Eloquent\Builder;
/**
* Composite Primary Key Trait adoption for eloquent object
*
* Trait HasCompositePrimaryKey
@j0eii
j0eii / 00_wtsappSendMSg.js
Last active Jun 8, 2018
Whatsapp SendMsg
View 00_wtsappSendMSg.js
function sendMessage(message) {
var evt = new Event('input', {
bubbles: true
});
var input = document.querySelector("div.input");
input.innerHTML = message;
input.dispatchEvent(evt);
document.querySelector(".icon-send").click();