Skip to content

Instantly share code, notes, and snippets.

Valeriy Donika Valonix

Block or report user

Report or block Valonix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Valonix
Valonix / ProductController.php
Created Jan 10, 2017
Laravel 5.2 Admin Controller
View ProductController.php
<?php
namespace App\Http\Controllers\Admin;
use App\Manufacturer;
use App\Category;
use App\Product;
use App\ProductImage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\File;
View SitemapController.php
<?php
namespace App\Http\Controllers;
use App\Category;
use Sitemap;
use App\Product;
class SitemapController extends Controller
@Valonix
Valonix / product-detail.component.js
Created Jan 10, 2017
Angular 1.5x Product Detail Page
View product-detail.component.js
'use strict';
(function () {
'use strict';
angular.module('productDetail').component('productDetail', {
templateUrl: 'views/app/product-detail/product-detail.template.html',
bindings: {
item: '='
},
@Valonix
Valonix / cart.directive.js
Created Jan 10, 2017
Cart directives for e-commerce
View cart.directive.js
'use strict';
angular.
module('core.cart').
directive('addtoCart', ['Cart','$timeout', function(Cart, $timeout){
return {
restrict: 'E',
transclude: true,
scope: {
id:'@',
You can’t perform that action at this time.