Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Reid ChrisReid

  • Manchester UK
View GitHub Profile
@ChrisReid
ChrisReid / Model.php
Last active Aug 29, 2015
Laravel trait to maintain created_at and updated_at columns in Laravel models.
View Model.php
?php namespace App;
use Illuminate\Database\Eloquent\Model;
class Quote extends Model {
use TracksUsers;
}
@ChrisReid
ChrisReid / boys_names.php
Last active Dec 15, 2015
PHP Array of boys names and girls names. I use this to seed databases.
View boys_names.php
<?php
return array(
'Jess',
'Donovan',
'Erik',
'Terence',
'Eric',
'Christian',
'Johnny',
You can’t perform that action at this time.