Listings
- fixed selection field JSX - fixed bulk actions (added filter function) - added getPublished/getTrashed static methods on Model - fixed step 3 of newsletter process - updated save/get methods of all listing-able models to conform with the new norm
This commit is contained in:
@@ -90,4 +90,12 @@ class Model extends \Sudzy\ValidModel {
|
||||
}, $searchCriteria);
|
||||
return $orm->having_raw(implode(' ' . $searchCondition . ' ', $havingFields), array_values($havingValues));
|
||||
}
|
||||
|
||||
static function getPublished() {
|
||||
return static::whereNull('deleted_at');
|
||||
}
|
||||
|
||||
static function getTrashed() {
|
||||
return static::whereNotNull('deleted_at');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user