Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Jun 28, 2024
1 parent d54885b commit c319a06
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
File renamed without changes.
6 changes: 0 additions & 6 deletions resources/lang/en/simple-map.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Components/Concerns/HasKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ trait HasKey
{
public function getKey(): ?string
{
return config('simple-map.google_maps_embed_api'); // TODO(fix): Config is not being found
return config('filament-simple-map.google_maps_embed_api');
}
}
8 changes: 1 addition & 7 deletions src/SimpleMapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace CodeWithDennis\SimpleMap;

use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

Expand All @@ -15,12 +14,7 @@ class SimpleMapServiceProvider extends PackageServiceProvider
public function configurePackage(Package $package): void
{
$package->name(static::$name)
->hasConfigFile('simple-map')
->hasInstallCommand(function (InstallCommand $command) {
$command
->publishConfigFile()
->askToStarRepoOnGitHub('codewithdennis/filament-simple-map');
});
->hasConfigFile();

if (file_exists($package->basePath('/../resources/views'))) {
$package->hasViews(static::$viewNamespace);
Expand Down

0 comments on commit c319a06

Please sign in to comment.