First Upload
This commit is contained in:
20
app/CustomClasses/GetAndCheckTaskIds.php
Normal file
20
app/CustomClasses/GetAndCheckTaskIds.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\CustomClasses;
|
||||
|
||||
use App\Models\Task;
|
||||
|
||||
class GetAndCheckTaskIds
|
||||
{
|
||||
protected $ids;
|
||||
|
||||
public function __construct(array $ids)
|
||||
{
|
||||
$this->ids = $ids;
|
||||
}
|
||||
|
||||
public function GetTaskRecords()
|
||||
{
|
||||
return Task::with('device', 'tag', 'category')->whereIn('id', $this->ids)->get();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user