Create IncidentTemplate migration and model.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user