24 lines
375 B
PHP
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;
|
|
}
|
|
}
|