This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo type "commit" or "update" | |
cd "curl" | |
set GIT_PATH="C:\Program Files (x86)\Git\bin\git.exe" | |
set BRANCH = "origin" | |
:P | |
set ACTION= | |
set /P ACTION=Action: %=% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* write by EThaiZone <[email protected]> | |
* todo feature - about update data of pivot table | |
*/ | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Builder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get Git Status via PHP (No execute function) | |
* @author Nimit Suwannagate <[email protected]> | |
* Laravel Version | |
*/ | |
function getGitStatus() | |
{ | |
$branch = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (! function_exists('view')) | |
{ | |
/** | |
* Render view as html with layout system | |
* @author Nimit Suwannagate <[email protected]> | |
*/ | |
function view($viewName, $data = array(), $layout = 'default') | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! function_exists('basePath')) | |
{ | |
/** | |
* Get the path to the base of the install. | |
* | |
* @param string $path | |
* @return string | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// write by me. | |
if ( ! function_exists('dq')) | |
{ | |
function dq($offset = 0, $length = null, $echoOnly = false) | |
{ | |
s(array_slice(DB::getQueryLog(), $offset, $length)); | |
if ($echoOnly == false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Array collection helpers | |
* | |
* Ported from Laravel4. | |
* By EThaiZone | |
*/ | |
if ( ! function_exists('array_add')) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Date function for Thai | |
* Lazy code version. | |
* | |
* Don't remove copyright. | |
* | |
* @author Nimit Suwannagate <[email protected]> | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
class ProductControllerTest extends TestCase | |
{ | |
use DatabaseMigrations; | |
protected $testSubject = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!function_exists('mb_str_split')) { | |
/** | |
* Convert a multibyte string to an array | |
* | |
* @param string $string The input string. | |
* @param integer $split_length Maximum length of the chunk. | |
* @param string $encoding The encoding parameter is the character encoding. | |
* @return array |
OlderNewer