Skip to content

Instantly share code, notes, and snippets.

Never stop learning!

Ivan Vermeyen ivanvermeyen

Never stop learning!
View GitHub Profile
ivanvermeyen / error_blade_directive.php
Created Mar 29, 2019 — forked from calebporzio/error_blade_directive.php
A little Blade directive to make working with validation errors a bit nicer.
View error_blade_directive.php
// Usage:
// Before
@if ($errors->has('email'))
<span>{{ $errors->first('email') }}</span>
// After:
ivanvermeyen / webpack.mix.js
Created Mar 19, 2019 — forked from calebporzio/webpack.mix.js
A webpack.mix.js file for writing NPM packages the way you write JS in a Laravel app.
View webpack.mix.js
let mix = require('laravel-mix');
mix.js('src/index.js', 'dist/foo.js').sourceMaps();
output: {
libraryTarget: 'umd',
ivanvermeyen / BlogController.php
Created Mar 27, 2016 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
View BlogController.php
class BlogController extends Controller
* Posts
* @return void
public function showPosts()
ivanvermeyen / tenant-middleware
Created Jan 17, 2016 — forked from taylorotwell/tenant-middleware
Magical tenant middleware thing
View tenant-middleware
namespace App\Http\Middleware;
use Closure;
use Illuminate\Auth\Access\AuthorizationException;
class VerifyTenants
View How To Hide The Select Arrow On

How to remove hide the <select> arrow in Firefox using -moz-appearance:none;

tl;dr (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
  3. Set text-overflow to '' (an empty string). This will change anything that extends beyond the element's width to... nothing - and this includes the infamous arrow!

Firefox select element with no arrow