You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
548 B
29 lines
548 B
<?php
|
|
|
|
namespace App\Entities\Projects;
|
|
|
|
use App\Entities\BaseRepository;
|
|
|
|
/**
|
|
* Tasks Repository Class
|
|
*/
|
|
class TasksRepository extends BaseRepository
|
|
{
|
|
protected $model;
|
|
|
|
public function __construct(Task $model)
|
|
{
|
|
parent::__construct($model);
|
|
}
|
|
|
|
public function createTask($taskData, $featureId)
|
|
{
|
|
$taskData['feature_id'] = $featureId;
|
|
return $this->storeArray($taskData);
|
|
}
|
|
|
|
public function getTasksByFeatureId($featureId)
|
|
{
|
|
return Task::whereTaskId($featureId)->get();
|
|
}
|
|
}
|