fixes to alerts and soft deleting

This commit is contained in:
KodeStar
2018-02-03 15:46:14 +00:00
parent 25bbf6f99a
commit 19cd1be85a
13 changed files with 286 additions and 23 deletions

View File

@@ -4,16 +4,25 @@ namespace App;
use Illuminate\Database\Eloquent\Model;
use Symfony\Component\ClassLoader\ClassMapGenerator;
use Illuminate\Database\Eloquent\SoftDeletes;
class Item extends Model
{
use SoftDeletes;
//
protected $fillable = [
'title', 'url', 'colour', 'icon', 'description', 'pinned', 'order'
];
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ['deleted_at'];
public static function supportedList()
{
return [