This commit is contained in:
@@ -44,7 +44,7 @@ class BenchmarkController extends Controller {
|
||||
public function postAdd(Request $request, Response $response): Response {
|
||||
$params = (array)$request->getParsedBody();
|
||||
|
||||
$benchmark = new Benchmark;
|
||||
$benchmark = new Benchmark();
|
||||
$benchmark->name = $params['benchmark_name'];
|
||||
$benchmark->description = $params['benchmark_description'];
|
||||
$benchmark->scoring = $params['benchmark_scoring'];
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace BitGoblin\Colossus\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Test extends Model {
|
||||
|
||||
protected $fillable = [
|
||||
'date_tag',
|
||||
'benchmark_id',
|
||||
@@ -68,5 +67,4 @@ class Test extends Model {
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user