Skip to content

Instantly share code, notes, and snippets.

View j0eii's full-sized avatar
🎯
Focusing

- j0eii

🎯
Focusing
View GitHub Profile
@j0eii
j0eii / 00_wtsappSendMSg.js
Last active June 8, 2018 05:03
Whatsapp SendMsg
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();
@j0eii
j0eii / HasCompositePrimaryKey.php
Created June 5, 2018 14:49
Laravel 5.0+ CompositePrimaryKey trait
<?php
namespace App\Behaviours\Eloquent;
use Illuminate\Database\Eloquent\Builder;
/**
* Composite Primary Key Trait adoption for eloquent object
*
* Trait HasCompositePrimaryKey