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.
 
 
 
 
 

30 lines
593 B

<?php
namespace App\Entities\Projects;
use App\Entities\BaseRepository;
/**
* Features Repository Class
*/
class FeaturesRepository extends BaseRepository
{
protected $model;
public function __construct(Feature $model)
{
parent::__construct($model);
}
public function requireProjectById($projectId)
{
return Project::findOrFail($projectId);
}
public function create($featureData)
{
dd($featureData);
$featureData['feature_value'] = $featureData['proposal_value'];
return $this->storeArray($featureData);
}
}