This file contains 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
interface StateableInterface | |
{ | |
//E-Commerce states | |
const STATE_COMMERCE_CHECKOUT = 'commerce-checkout'; | |
const STATE_COMMERCE_SOLD = 'commerce-sold'; | |
const STATE_COMMERCE_RETURNED = 'commerce-returned'; | |
const STATE_COMMERCE_RETURNED_PARTIAL = 'commerce-returned-partial'; | |
const STATE_COMMERCE_RESERVERD = 'commerce-reserved'; | |
const STATE_COMMERCE_BACK_ORDERED = 'commerce-back-ordered'; |
This file contains 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
Schema::create('inventory_transactions', function (Blueprint $table) | |
{ | |
$table->increments('id'); | |
$table->timestamps(); | |
$table->integer('stock_id')->unsigned(); | |
$table->string('state'); | |
$table->decimal('quantity', 8, 2)->default(0); | |
$table->foreign('stock_id')->references('id')->on('inventory_stocks') | |
->onUpdate('restrict') |
This file contains 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
/** | |
* Escapes the inserted value for LDAP. | |
* | |
* @param string $value The value to escape | |
* @param string $ignore The characters to ignore | |
* @param int $flags The PHP flag to use | |
* | |
* @return bool|string | |
*/ | |
public function escapeManual($value, $ignore = '*', $flags = 0) |
This file contains 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
/** | |
* Returns all of the assemblies items in an | |
* easy to work with array. | |
* | |
* @param bool $recursive | |
* | |
* @return array | |
*/ | |
public function getAssemblyItemsList($recursive = true, $depth = 0) | |
{ |
This file contains 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
array(2) { | |
[0]=> | |
array(7) { | |
["id"]=> | |
string(1) "2" | |
["name"]=> | |
string(9) "Table Top" | |
["metric_id"]=> | |
string(1) "1" | |
["category_id"]=> |
This file contains 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
// Your BaseController | |
use Stevebauman\Purfiy\Purify; | |
class BaseController extends Controller | |
{ | |
protected $purfiy; | |
public function __construct(Purify $purfiy) | |
{ |
This file contains 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 Starting Backup. | |
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set dt=%%c-%%a-%%b) | |
For /f "tokens=1-4 delims=:." %%a in ('echo %time%') do (set tm=%%a%%b%%c%%d) | |
set database=database | |
set username=root | |
set password=password | |
set file=%database%-%dt%-%tm%.sql |
This file contains 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
<template> | |
<textarea | |
:id="id" | |
:name="name" | |
:value="value" | |
:placeholder="placeholder" | |
:rows="rows" | |
:cols="cols" | |
class="form-control" | |
@dragover.prevent |
This file contains 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
<template> | |
<div></div> | |
</template> | |
<script> | |
import Trix from 'trix'; | |
export default { | |
props: ['value'], |
This file contains 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
# Configuration data | |
# SQL Server Instance name. | |
[string] $server = "PC-RPT01"; | |
# ReportServer Database. | |
[string] $database = "ReportServer"; | |
# Path to export the reports to. | |
[string] $folder = "C:\Users\johndoe\Desktop\Reports"; |
OlderNewer