Skip to content

Instantly share code, notes, and snippets.

View ramosmerino's full-sized avatar

Cristóbal Ramos Merino ramosmerino

View GitHub Profile
@ramosmerino
ramosmerino / Webpack4+Vue with ExtractTextPlugin and SplitChunks project configuration
Last active March 24, 2018 07:24
Production build configuration for a personal project using Vue+Vuetify and Webpack 4, with ExtractTextPlugin and SplitChunks.
Don't forget to upgrade extract-text-webpack-plugin:
yarn upgrade extract-text-webpack-plugin@next --dev
@ramosmerino
ramosmerino / SAMODbmigrateController.php
Last active January 30, 2017 06:32 — forked from bruceoutdoors/DbmigrateController.php
The same ol' DbmigrateController, on steroids, for Laravel 5, and with some tweaks that I find useful for my work. In brief, get migration files by a created database, one for each table or all in one, ordered in creation time by their foreign keys, to only call the 'php artisan migrate'. Simply sugar.
<?php namespace App\Http\Controllers;
use \Illuminate\Support\Facades\DB;
use \Illuminate\Support\Str;
use League\Flysystem\Exception;
/**
* Class SAMODbmigrateController
*
* Converts an existing MySQL database to migrations files for Laravel 5.