Skip to content

Instantly share code, notes, and snippets.

İlter Kağan Öcal ilterocal

  • Ankara/Turkey
Block or report user

Report or block ilterocal

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
@ilterocal
ilterocal / button-loading.js
Last active Mar 6, 2018
button-loading directive for Vue2
View button-loading.js
import Vue from "vue"
Vue.directive('button-loading', {
update: function (el, binding, vnode) {
//do nothing if value not changed
if (binding.oldValue === binding.value) {
return;
}
if (binding.value === true) {
@ilterocal
ilterocal / axios-debugbar.js
Created Jan 24, 2018
barryvdh/laravel-debugbar with Axios Http Client
View axios-debugbar.js
import axios from 'axios'
axios.interceptors.response.use(response => {
if(phpdebugbar) {
phpdebugbar.ajaxHandler.handle(response.request);
}
return response;
}, error => {
return Promise.reject(error)
})
@ilterocal
ilterocal / QueryLoggingController.php
Last active Mar 18, 2016
Logging Laravel 5 SQL Queries in Controller.
View QueryLoggingController.php
<?php namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
class QueryLoggingController extends Controller
{
public function __construct()
{
DB::listen(
You can’t perform that action at this time.