Files
online.tbbank.gov.tm-larave…/nova/src/TrashedStatus.php
2024-09-01 18:54:23 +05:00

24 lines
375 B
PHP

<?php
namespace Laravel\Nova;
class TrashedStatus
{
const DEFAULT = '';
const WITH = 'with';
const ONLY = 'only';
/**
* Get trashed status from boolean.
*
* @param bool $withTrashed
* @return string
*/
public static function fromBoolean($withTrashed)
{
return $withTrashed ? self::WITH : self::DEFAULT;
}
}