2
2
3
3
namespace Flowbite \FlowbiteLaravel ;
4
4
5
+ use Flowbite \FlowbiteLaravel \Commands \FlowbiteLaravelCommand ;
5
6
use Flowbite \FlowbiteLaravel \View \Components \Input ;
6
7
use Illuminate \Support \Facades \Blade ;
7
- use Illuminate \Support \Facades \DB ;
8
- use Illuminate \Support \Str ;
9
8
use Illuminate \View \Compilers \BladeCompiler ;
10
9
use Spatie \LaravelPackageTools \Package ;
11
10
use Spatie \LaravelPackageTools \PackageServiceProvider ;
12
- use Flowbite \FlowbiteLaravel \Commands \FlowbiteLaravelCommand ;
13
11
14
12
class FlowbiteLaravelServiceProvider extends PackageServiceProvider
15
13
{
@@ -38,7 +36,7 @@ public function packageBooted()
38
36
protected function configureComponents ()
39
37
{
40
38
$ this ->callAfterResolving (BladeCompiler::class, function () {
41
- $ this ->registerComponent ('input ' ,'input.index ' );
39
+ $ this ->registerComponent ('input ' , 'input.index ' );
42
40
//$this->registerComponent('input.floated');
43
41
});
44
42
}
@@ -51,8 +49,8 @@ protected function configureComponents()
51
49
*/
52
50
protected function registerComponent (string $ component , ?string $ file = null )
53
51
{
54
- $ prefix = config ('flowbite-laravel.prefix ' ,'' );
55
- if (! empty ($ prefix )){
52
+ $ prefix = config ('flowbite-laravel.prefix ' , '' );
53
+ if (! empty ($ prefix )) {
56
54
$ prefix .= "- " ;
57
55
}
58
56
Blade::component ('flowbite-laravel::components. ' .($ file ?? $ component ), $ prefix .$ component );
0 commit comments