Skip to content

Instantly share code, notes, and snippets.

Bengi bengitiger

  • Ansan
Block or report user

Report or block bengitiger

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
bengitiger / CustomVeeValidator
Created Mar 14, 2019 — forked from psychonetic/CustomVeeValidator
Vue-Dropzone and Vee-Validate
View CustomVeeValidator
// Custom Validator to add errors into vuex store and also handle laravel form errors.
import { mapGetters } from 'vuex';
import { CLEAR_FORM_ERRORS, ERROR } from '../vuex/types';
import Vue from 'vue';
export default {
data() {
return {
errors: [],
keepServerErrors: ['unique', 'boolean', 'exists', 'regular_chars', 'identifier', 'date'],
bengitiger / laravel-global-exception-handler.php
Created Jan 18, 2019 — forked from cballou/laravel-global-exception-handler.php
Global handling of Laravel exceptions to better support AJAX requests.
View laravel-global-exception-handler.php
<?php namespace App\Exceptions;
use Log;
use Mail;
use Config;
use Exception;
use Illuminate\Auth\Access\UnauthorizedException;
use Illuminate\Session\TokenMismatchException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
View gist:a528f88765828f07787c83f8359a4f60
* Log the user out.
* @Get("logout", as="logout")
* @Middleware("auth")
* @return Response
public function logout()
View YoutubeValidationRule
// Make sure to put this at the top of your AppServiceProvider: use Illuminate\Support\Facades\Validator;
Validator::extend('youtube', function ($attribute, $value, $parameters, $validator) {
preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+(?=\?)|(?<=v=)[^&\n]+|(?<[^&\n]+#", $value, $matches);
return count($matches) > 0;
}, "Sorry, this doesn't look like a valid youtube URL");
View route.php
Route::get('/', function () {
return view('welcome');






A few sentences describing the overall goals of the pull request's commits.

Related PRs

bengitiger / eloquent-cheatsheet.php
Created Oct 11, 2018 — forked from hassansin/eloquent-cheatsheet.php
Laravel 5 Eloquent CheatSheet #laravel #eloquent
View eloquent-cheatsheet.php
->select(DB::raw('businesses.*, COUNT( as no_of_ratings, IFNULL(sum(reviews.score),0) as rating'))
->distinct() // distinct select
bengitiger /
Created Jan 15, 2018
Sequelize + Express + Migrations + Seed Starter
bengitiger / gist:1a1a0ded3de9f042fa3a9f7d29d28e0a
Created Jan 13, 2018 — forked from pranildasika/gist:2964211
Virtual fields using getter and setter methods in sequelize
View gist:1a1a0ded3de9f042fa3a9f7d29d28e0a
var Sequelize = require('sequelize')
var sequelize = new Sequelize('sequelize_test', 'root')
//Note that the model definition does not have "fullName"
var User = sequelize.define('User', {
email: Sequelize.STRING,
firstName: Sequelize.STRING,
lastName: Sequelize.STRING,
bengitiger / .eslintrc.js
Created Mar 15, 2017 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
"env": {
"browser": true,
"node": true,
"es6": true
"plugins": ["react"],
"ecmaFeatures": {
You can’t perform that action at this time.