diff src/Generator/View/ViewGenerator.php @ 26:555bfaa500ac codex

Big update for view creation based on the column type.
author Luka Sitas <sitas.luka.97@gmail.com>
date Thu, 15 May 2025 21:50:38 -0400
parents 1a717c7b211f
children
line wrap: on
line diff
--- a/src/Generator/View/ViewGenerator.php	Sun May 11 21:03:51 2025 -0400
+++ b/src/Generator/View/ViewGenerator.php	Thu May 15 21:50:38 2025 -0400
@@ -90,16 +90,16 @@
 
     protected function createIndexView()
     {
-        $this->call('mf:index_view', ['table' => $this->getTableInput()]);
+        $this->call('mf:index_view', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]);
     }
 
     protected function createCreateEditView()
     {
-        $this->call('mf:create_edit_view', ['table' => $this->getTableInput()]);
+        $this->call('mf:create_edit_view', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]);
     }
 
     protected function createShowView()
     {
-        $this->call('mf:show_view', ['table' => $this->getTableInput()]);
+        $this->call('mf:show_view', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]);
     }
 }