new deployer command
This commit is contained in:
@@ -63,9 +63,7 @@ class AuditTrailServiceProvider extends ServiceProvider
|
|||||||
$commandPath = __DIR__ . '/../Console';
|
$commandPath = __DIR__ . '/../Console';
|
||||||
$commands = collect(File::allFiles($commandPath))
|
$commands = collect(File::allFiles($commandPath))
|
||||||
->map(function ($file) {
|
->map(function ($file) {
|
||||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||||
|
|
||||||
return $class;
|
|
||||||
})
|
})
|
||||||
->filter(function ($class) {
|
->filter(function ($class) {
|
||||||
return class_exists($class);
|
return class_exists($class);
|
||||||
|
|||||||
@@ -16,6 +16,5 @@ class ChatGPTDatabaseSeeder extends Seeder
|
|||||||
{
|
{
|
||||||
Model::unguard();
|
Model::unguard();
|
||||||
|
|
||||||
// $this->call("OthersTableSeeder");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,9 +79,7 @@ class ChatGPTServiceProvider extends ServiceProvider
|
|||||||
$commandPath = __DIR__ . '/../Console';
|
$commandPath = __DIR__ . '/../Console';
|
||||||
$commands = collect(File::allFiles($commandPath))
|
$commands = collect(File::allFiles($commandPath))
|
||||||
->map(function ($file) {
|
->map(function ($file) {
|
||||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||||
|
|
||||||
return $class;
|
|
||||||
})
|
})
|
||||||
->filter(function ($class) {
|
->filter(function ($class) {
|
||||||
return class_exists($class);
|
return class_exists($class);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class CompanyController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$company = Company::create($this->validated($request));
|
Company::create($this->validated($request));
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('platform.companies.index')
|
->route('platform.companies.index')
|
||||||
|
|||||||
@@ -156,8 +156,7 @@ final class KanbanBoard extends Component
|
|||||||
*/
|
*/
|
||||||
public function selectBoard(int|string|null $value): void
|
public function selectBoard(int|string|null $value): void
|
||||||
{
|
{
|
||||||
$this->board_id = is_numeric($value) ? (int) $value : null;
|
$this->updatedBoardId($value);
|
||||||
$this->refreshBoard();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ final class WorkflowNotificationService
|
|||||||
$trackingToken = Str::random(48);
|
$trackingToken = Str::random(48);
|
||||||
$subject = $this->renderText($template->subject, $ticket, $actor);
|
$subject = $this->renderText($template->subject, $ticket, $actor);
|
||||||
$html = $this->wrapHtml($this->renderText($template->html_body, $ticket, $actor), $ticket, $trackingToken);
|
$html = $this->wrapHtml($this->renderText($template->html_body, $ticket, $actor), $ticket, $trackingToken);
|
||||||
$text = $this->renderText($template->text_body ?: strip_tags($template->html_body), $ticket, $actor);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Mail::html($html, function ($message) use ($recipient, $template, $subject): void {
|
Mail::html($html, function ($message) use ($recipient, $template, $subject): void {
|
||||||
|
|||||||
@@ -16,6 +16,5 @@ class M3DatabaseSeeder extends Seeder
|
|||||||
{
|
{
|
||||||
Model::unguard();
|
Model::unguard();
|
||||||
|
|
||||||
// $this->call("OthersTableSeeder");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,9 +79,7 @@ class M3ServiceProvider extends ServiceProvider
|
|||||||
$commandPath = __DIR__ . '/../Console';
|
$commandPath = __DIR__ . '/../Console';
|
||||||
$commands = collect(File::allFiles($commandPath))
|
$commands = collect(File::allFiles($commandPath))
|
||||||
->map(function ($file) {
|
->map(function ($file) {
|
||||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||||
|
|
||||||
return $class;
|
|
||||||
})
|
})
|
||||||
->filter(function ($class) {
|
->filter(function ($class) {
|
||||||
return class_exists($class);
|
return class_exists($class);
|
||||||
|
|||||||
@@ -16,6 +16,5 @@ class OTMDatabaseSeeder extends Seeder
|
|||||||
{
|
{
|
||||||
Model::unguard();
|
Model::unguard();
|
||||||
|
|
||||||
// $this->call("OthersTableSeeder");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,9 +79,7 @@ class OTMServiceProvider extends ServiceProvider
|
|||||||
$commandPath = __DIR__ . '/../Console';
|
$commandPath = __DIR__ . '/../Console';
|
||||||
$commands = collect(File::allFiles($commandPath))
|
$commands = collect(File::allFiles($commandPath))
|
||||||
->map(function ($file) {
|
->map(function ($file) {
|
||||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||||
|
|
||||||
return $class;
|
|
||||||
})
|
})
|
||||||
->filter(function ($class) {
|
->filter(function ($class) {
|
||||||
return class_exists($class);
|
return class_exists($class);
|
||||||
|
|||||||
@@ -63,9 +63,7 @@ class PricingServiceProvider extends ServiceProvider
|
|||||||
$commandPath = __DIR__ . '/../Console';
|
$commandPath = __DIR__ . '/../Console';
|
||||||
$commands = collect(File::allFiles($commandPath))
|
$commands = collect(File::allFiles($commandPath))
|
||||||
->map(function ($file) {
|
->map(function ($file) {
|
||||||
$class = 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
return 'Modules\\' . $this->moduleName . '\\Console\\' . $file->getFilenameWithoutExtension();
|
||||||
|
|
||||||
return $class;
|
|
||||||
})
|
})
|
||||||
->filter(function ($class) {
|
->filter(function ($class) {
|
||||||
return class_exists($class);
|
return class_exists($class);
|
||||||
|
|||||||
Reference in New Issue
Block a user