|PaymentReminder newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder newQuery() * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder query() * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereAction($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereActive($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereClearingtype($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereInterval($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereMessage($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereSubject($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|PaymentReminder whereUpdatedAt($value) * * @mixin \Eloquent */ class PaymentReminder extends Model { protected $table = 'payment_reminders'; protected $casts = [ 'interval' => 'int', 'active' => 'bool', ]; protected $fillable = [ 'title', 'subject', 'interval', 'message', 'action', 'clearingtype', 'active', ]; protected static $clearingtypes = [ 'fnc' => 'Rechnung', 'vor' => 'Vorkasse', ]; public function getClearingtype() { return isset(self::$clearingtypes[$this->clearingtype]) ? self::$clearingtypes[$this->clearingtype] : 'Kein Typ'; } public static function returnClearingtypes() { return self::$clearingtypes; } }