updated folder colors, reordering, new todo page, updated sidebar
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -16,17 +16,23 @@ use Illuminate\Support\Collection;
|
||||
* @property int $id
|
||||
* @property int $user_id
|
||||
* @property string $name
|
||||
* @property string|null $color
|
||||
* @property int|null $parent_id
|
||||
* @property Folder|null $parent
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*/
|
||||
#[Fillable(['user_id', 'name', 'parent_id'])]
|
||||
#[Fillable(['user_id', 'name', 'parent_id', 'color'])]
|
||||
class Folder extends Model
|
||||
{
|
||||
/** @use HasFactory<FolderFactory> */
|
||||
use HasFactory;
|
||||
|
||||
public const COLORS = [
|
||||
'zinc', 'red', 'orange', 'amber', 'green', 'emerald',
|
||||
'sky', 'blue', 'indigo', 'violet', 'fuchsia', 'pink',
|
||||
];
|
||||
|
||||
/** @return BelongsTo<User, $this> */
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user