Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 17, 2024
1 parent 0cf7ecc commit 12b6511
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- vendor/nunomaduro/larastan/extension.neon
- vendor/larastan/larastan/extension.neon
parameters:
databaseMigrationsPath:
- database/migrations/
Expand Down
2 changes: 1 addition & 1 deletion resources/views/fields/file.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@if(! empty($options))
<ul class="file-list__items">
@foreach($options as $option)
<li>{!! $option !!}</li>
<li>{!! $option['html'] !!}</li>
@endforeach
</ul>
@endif
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ public function toSubResource(Request $request, Model $model): array
return array_merge($this->toArray(), [
'key' => $this->modelAttribute,
'url' => $this->modelUrl($model),
'modelName' => $this->getRelatedName(),
]);
}

Expand All @@ -674,7 +675,6 @@ public function toIndex(Request $request, Model $model): array
'template' => $request->isTurboFrameRequest() ? 'root::resources.relation' : 'root::resources.index',
'title' => $this->label,
'model' => $this->getRelation($model)->make(),
'modelName' => $this->getRelatedName(),
'actions' => $this->resolveActions($request)
->authorized($request, $model)
->visible('index')
Expand Down
4 changes: 0 additions & 4 deletions src/RootServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Cone\Root;

use Carbon\CarbonImmutable;
use Cone\Root\Resources\Resource;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Contracts\Foundation\Application;
Expand All @@ -13,7 +12,6 @@
use Illuminate\Routing\Route;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -76,8 +74,6 @@ public function boot(): void

$this->registerViews();
$this->registerRoutes();

Date::use(CarbonImmutable::class);
}

/**
Expand Down

0 comments on commit 12b6511

Please sign in to comment.