File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 33namespace InfyOm \Generator \Commands \Publish ;
44
55use Exception ;
6+ use Illuminate \View \Factory ;
67use Symfony \Component \Console \Input \InputArgument ;
78
89class PublishTablesCommand extends PublishBaseCommand
@@ -45,13 +46,16 @@ public function publishLivewireTableViews()
4546 $ viewsPath = config ('laravel_generator.path.views ' , resource_path ('views/ ' ));
4647 $ templateType = config ('infyom.laravel_generator.templates ' , 'adminlte-templates ' );
4748 $ files = [
48- 'scaffold.table.livewire.actions ' => 'common/livewire-tables/actions.blade.php ' ,
49+ 'templates. scaffold.table.livewire.actions ' => 'common/livewire-tables/actions.blade.php ' ,
4950 ];
5051
5152 g_filesystem ()->createDirectoryIfNotExist ($ viewsPath .'common/livewire-tables ' );
5253
54+ /** @var Factory $viewFactory */
55+ $ viewFactory = view ();
5356 foreach ($ files as $ templateView => $ destinationView ) {
54- $ content = view ($ templateType .':: ' .$ templateView );
57+ $ templateViewPath = $ viewFactory ->getFinder ()->find ($ templateType .':: ' .$ templateView );
58+ $ content = g_filesystem ()->getFile ($ templateViewPath );
5559 $ destinationFile = $ viewsPath .$ destinationView ;
5660 g_filesystem ()->createFile ($ destinationFile , $ content );
5761 }
You can’t perform that action at this time.
0 commit comments