File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,14 @@ public function publishLivewireTableViews()
44
44
{
45
45
$ viewsPath = config ('laravel_generator.path.views ' , resource_path ('views/ ' ));
46
46
$ templateType = config ('infyom.laravel_generator.templates ' , 'adminlte-templates ' );
47
-
48
47
$ files = [
49
- 'views/table/livewire/actions ' => 'common/livewire-tables/actions.blade.php ' ,
48
+ 'views/templates/scaffold/ table/livewire/actions.blade.php ' => 'common/livewire-tables/actions.blade.php ' ,
50
49
];
51
50
51
+ g_filesystem ()->createDirectoryIfNotExist ($ viewsPath .'common/livewire-tables ' );
52
+
52
53
foreach ($ files as $ stub => $ blade ) {
53
- $ sourceFile = get_template_file_path ( ' scaffold / ' .$ stub, $ templateType ) ;
54
+ $ sourceFile = get_templates_package_path ( $ templateType ). ' / ' .$ stub ;
54
55
$ destinationFile = $ viewsPath .$ blade ;
55
56
$ this ->publishFile ($ sourceFile , $ destinationFile , $ blade );
56
57
}
You can’t perform that action at this time.
0 commit comments