Skip to content

Commit bfdf3f6

Browse files
authored
Merge pull request #239 from thedevdojo/fixingVoltMakeOrder
Adding fix so that way volt components get added to the default livew…
2 parents 02ae9df + 0dbfb4f commit bfdf3f6

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace App\Providers;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
use Livewire\Volt\Volt;
7+
8+
class VoltServiceProvider extends ServiceProvider
9+
{
10+
/**
11+
* Register services.
12+
*/
13+
public function register(): void
14+
{
15+
//
16+
}
17+
18+
/**
19+
* Bootstrap services.
20+
*/
21+
public function boot(): void
22+
{
23+
Volt::mount([
24+
config('livewire.view_path', resource_path('views/livewire')),
25+
resource_path('views/pages'),
26+
]);
27+
}
28+
}

config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
App\Providers\FolioServiceProvider::class,
203203

204204
\DevDojo\Themes\ThemesServiceProvider::class,
205+
App\Providers\VoltServiceProvider::class,
205206

206207
],
207208

0 commit comments

Comments
 (0)