Skip to content

Commit 57cd373

Browse files
committed
v1
1 parent 29397ba commit 57cd373

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

ComponentServiceProvider.php

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

src/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static function makeForm(Content $content)
163163
$items = [
164164
'_content_' => str_replace('pjax-container', '', $content->build())
165165
];
166-
return view('component.content', $items)->render();
166+
return view('component::content', $items)->render();
167167
}
168168

169169
public static function result($success=true,$message='OK',$data=[])

src/ComponentServiceProvider.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Dot\Component;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
7+
class ComponentServiceProvider extends ServiceProvider
8+
{
9+
public function boot()
10+
{
11+
$this->loadViewsFrom(__DIR__.'/../resources/views', 'component');
12+
13+
$this->publishes([
14+
__DIR__.'/../resources/assets' => public_path('vendor/laravel-admin-component-js/')
15+
]);
16+
}
17+
}

0 commit comments

Comments
 (0)