From 57e1df86c8041b0efe6dbbfbcc5c92195dd15fb5 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 10 Jul 2024 10:21:24 -0700 Subject: [PATCH] finds model and collects assets with such model --- app/Console/Commands/RemoveExplicitEols.php | 41 +++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/Console/Commands/RemoveExplicitEols.php diff --git a/app/Console/Commands/RemoveExplicitEols.php b/app/Console/Commands/RemoveExplicitEols.php new file mode 100644 index 0000000000..a0793cc507 --- /dev/null +++ b/app/Console/Commands/RemoveExplicitEols.php @@ -0,0 +1,41 @@ +option('model_name'))->first(); + + if($assetModel){ + $assets = Asset::where('model_id', '=', $assetModel->id)->get(); + } + else { + $this->error('Asset model not found'); + } + + dd($assets); + } +}