Skip to content

Instantly share code, notes, and snippets.

Trevor Gehman trevorgehman

View GitHub Profile
@reinink
reinink / webpack.mix.js
Created Nov 20, 2017
Using Purgecss with Tailwind and Laravel Mix
View webpack.mix.js
let cssImport = require('postcss-import')
let cssNext = require('postcss-cssnext')
let glob = require('glob-all')
let mix = require('laravel-mix')
let purgeCss = require('purgecss-webpack-plugin')
let tailwind = require('tailwindcss')
mix.js('resources/assets/js/app.js', 'public/js')
.postCss('resources/assets/css/app.css', 'public/css/app.css', [
cssImport(),
@Repox
Repox / PaginationController.php
Created Nov 3, 2016
Laravel 5 Pagination with transform
View PaginationController.php
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class PaginationController extends Controller
{
You can’t perform that action at this time.