add nova
This commit is contained in:
23
nova/src/TrashedStatus.php
Normal file
23
nova/src/TrashedStatus.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user