first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace LucentNotifications\Collections;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use LucentNotifications\Models\QuietHourSection;
|
||||
|
||||
class QuietHoursCollecton extends Collection
|
||||
{
|
||||
function __construct($items = [])
|
||||
{
|
||||
return collect($items)->map(fn($item) => new QuietHourSection($item));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user