Using Adldap2:
use Adldap\Laravel\Facades\Adldap;
$dn = "CN=".$groupName.",OU=AclGroups,".ACL_OU_AD;
$group = Adldap::make()->group([
'dn' => $dn,
'cn' => $groupName,
'samaccountname' => $groupName,| 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'; |
| 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') |
| /** | |
| * 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) | |
| { |
| array(2) { | |
| [0]=> | |
| array(7) { | |
| ["id"]=> | |
| string(1) "2" | |
| ["name"]=> | |
| string(9) "Table Top" | |
| ["metric_id"]=> | |
| string(1) "1" | |
| ["category_id"]=> |
| // Your BaseController | |
| use Stevebauman\Purfiy\Purify; | |
| class BaseController extends Controller | |
| { | |
| protected $purfiy; | |
| public function __construct(Purify $purfiy) | |
| { |
| 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 |
| # 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"; |
| <template> | |
| <textarea | |
| :id="id" | |
| :name="name" | |
| :value="value" | |
| :placeholder="placeholder" | |
| :rows="rows" | |
| :cols="cols" | |
| class="form-control" | |
| @dragover.prevent |
| // Require the class files. | |
| require 'Reader.php' | |
| require 'ToUs.php'; | |
| require 'ToCanada.php'; | |
| // Create the reader instances. | |
| $toUsReader = new ToUs(); | |
| $toCanadaReader = new ToCanada(); | |
| // Retrieve to US wait times. |
Using Adldap2:
use Adldap\Laravel\Facades\Adldap;
$dn = "CN=".$groupName.",OU=AclGroups,".ACL_OU_AD;
$group = Adldap::make()->group([
'dn' => $dn,
'cn' => $groupName,
'samaccountname' => $groupName,