Skip to content

Commit 19fe472

Browse files
authored
Merge pull request #26 from mabdullahsari/remove-config
Remove unused configuration file
2 parents efde5d8 + a39cd84 commit 19fe472

File tree

3 files changed

+0
-42
lines changed

3 files changed

+0
-42
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ You can install the package via composer:
1616
composer require mauricius/laravel-htmx
1717
```
1818

19-
You can publish the config file with:
20-
21-
```bash
22-
php artisan vendor:publish --tag="laravel-htmx"
23-
```
24-
25-
This is the contents of the published config file:
26-
27-
```php
28-
return [
29-
];
30-
```
31-
3219
To install htmx please browse [their documentation](https://htmx.org/docs/#installing)
3320

3421
## Usage

config/laravel-htmx.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/LaravelHtmxServiceProvider.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ class LaravelHtmxServiceProvider extends ServiceProvider
1313
{
1414
public function boot(): void
1515
{
16-
if ($this->app->runningInConsole()) {
17-
$this->bootForConsole();
18-
}
19-
2016
$this->app['blade.compiler']->directive('fragment', fn () => '');
2117

2218
$this->app['blade.compiler']->directive('endfragment', fn () => '');
@@ -27,24 +23,4 @@ public function boot(): void
2723
return BladeFragment::render($view, $fragment, $data);
2824
});
2925
}
30-
31-
/**
32-
* Console-specific booting.
33-
*
34-
* @return void
35-
*/
36-
protected function bootForConsole(): void
37-
{
38-
$this->publishes([
39-
__DIR__.'/../config/laravel-htmx.php' => config_path('laravel-htmx.php'),
40-
], 'config');
41-
}
42-
43-
public function register(): void
44-
{
45-
$this->mergeConfigFrom(
46-
__DIR__.'/../config/laravel-htmx.php',
47-
'laravel-htmx'
48-
);
49-
}
5026
}

0 commit comments

Comments
 (0)