Skip to content

Commit

Permalink
Merge pull request #152 from TMCApplications/laravel-10-fix
Browse files Browse the repository at this point in the history
Remove expression usage for Laravel 10 compatibility
  • Loading branch information
coroo authored Aug 16, 2023
2 parents dc9c0d2 + ce1e751 commit 2ead394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/TotalCircleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function handle(NovaRequest $request)
$model = $request->input('model');
$modelInstance = new $model;
$tableName = $modelInstance->getConnection()->getTablePrefix() . $modelInstance->getTable();
$xAxisColumn = $request->input('col_xaxis') ?? DB::raw($tableName.'.created_at');
$xAxisColumn = $request->input('col_xaxis') ?? $tableName.'.created_at';
$cacheKey = hash('md4', $model . (int)(bool)$request->input('expires'));
$dataSet = Cache::get($cacheKey);
if (!$dataSet) {
Expand Down
2 changes: 1 addition & 1 deletion src/api/TotalRecordsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function handle(NovaRequest $request)
$modelInstance = new $model;
$connectionName = $modelInstance->getConnection()->getDriverName();
$tableName = $modelInstance->getConnection()->getTablePrefix() . $modelInstance->getTable();
$xAxisColumn = $request->input('col_xaxis') ?? DB::raw($tableName.'.created_at');
$xAxisColumn = $request->input('col_xaxis') ?? $tableName.'.created_at';
$cacheKey = hash('md4', $model . (int)(bool)$request->input('expires'));
$dataSet = Cache::get($cacheKey);
if (!$dataSet) {
Expand Down

0 comments on commit 2ead394

Please sign in to comment.