Create IncidentTemplate migration and model.

This commit is contained in:
James Brooks
2014-11-24 16:49:07 +00:00
parent cbb7032119
commit 0bb95937b0
2 changed files with 49 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
class IncidentTemplate extends Eloquemt {
public static function boot() {
parent::boot();
self::on('saving', function($template) {
$template->slug = Str::slug($template->name);
});
}
}