Skip to content

Instantly share code, notes, and snippets.

fillWithSampleData() {
this.form.series_id = 1
this.originalSeriesId = 1
this.form.color_id = 2
this.form.items.doors.push(this.newItem({
style_id: 1,
back_id: 1,
drill_for_hinges: true,
<?php
declare(strict_types=1);
use App\Services\Views\HasViews;
use Symfony\Component\Finder\Finder;
/**
* Class AddViewsManager
*/
<?php
declare(strict_types=1);
use App\Models\Style;
use Illuminate\Support\Str;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
/**
<?php
namespace App\Console\Commands;
use App\Models\LocallyProduct;
use Illuminate\Console\Command;
class TestLocallySyncVariants extends Command
{
/**
<?php
namespace App\Console\Commands;
use App\Models\LocallyProduct;
use Illuminate\Console\Command;
class TestLocallySync extends Command
{
/**
<?php
namespace App\Console\Commands;
use App\Models\Product;
use App\Models\ProductVariant;
use Illuminate\Console\Command;
class FindProductDuplicates extends Command
{
@dmaksimov
dmaksimov / carousel-full-width.md
Created January 7, 2019 19:35
Make a carousel full width
@dmaksimov
dmaksimov / center_carousel.md
Created January 7, 2019 19:31
Center carousel
<nav class="main-navigation navbar navbar-default" role="navigation">
<div class="navbar-header">
<div class="nav-menu-title visible-xs">
Main Menu
</div>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>