Skip to content

Instantly share code, notes, and snippets.

{
"mappings":{
"item":{
"properties":{
"productName":{
"fields":{
"partial":{
"search_analyzer":"full_name",
"analyzer":"partial_name",
"type":"string"
@rabb-bit
rabb-bit / List.md
Created April 7, 2017 06:22 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@rabb-bit
rabb-bit / PayrollHelpers.php
Created April 7, 2017 07:13 — forked from neilodiaz/PayrollHelpers.php
Snippet on how to get WTAX in the Philippines.
<?php
public function getWitholdingTax()
{
// Check if within minimum wage salary, then 0 tax
// Check from general settings
$general_settings = Settings::first();
if ($this->getBasicPay() <= $general_settings->minimum_pay)
return 0;