Skip to content

Instantly share code, notes, and snippets.

View jorgejavierleon's full-sized avatar

Jorge Javier León jorgejavierleon

View GitHub Profile
@Raulebc
Raulebc / MySQL:regiones-provincias-comunas-chile.sql
Last active June 16, 2024 01:33
MySQL-Chile:regiones-provincias-comunas
Script comunas, regiones, provincias Junio 2022
DROP TABLE IF EXISTS `comunas`;
CREATE TABLE `comunas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comuna` varchar(64) NOT NULL,
`provincia_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=346 DEFAULT CHARSET=utf8;
@Nks
Nks / Model.php
Created August 18, 2016 15:30
Laravel 5.2 user spy-fields (created_by, updated_by, deleted_by) support
<?php
namespace App\Models;
use Auth;
use Illuminate\Database\Eloquent\Model as BaseModel;
class Model extends BaseModel
{
protected $userAttributes = [];
@rizqidjamaluddin
rizqidjamaluddin / gist:61cd7f61ca36cf5c2d5a
Last active February 19, 2020 22:01
Run a bunch of phpunit tests in sequence via Laravel 4's artisan CLI
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class RunTests extends Command
{