%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/camillo/camillo-api-master/app/Traits/
Upload File :
Create Path :
Current File : /var/www/html/camillo/camillo-api-master/app/Traits/NoticeHandlerTrait.php

<?php

namespace App\Traits;

use App\Models\Notice;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Log;
use Symfony\Component\HttpKernel\Exception\HttpException;

trait NoticeHandlerTrait
{
    /**
     * @param Notice $notice
     */
    public function deleteCallsQueue(Notice $notice)
    {
        Notice::where('minor_id',$notice->minor_id)
            ->where('institute_id', $notice->institute_id)
            ->where('classroom_id', $notice->classroom_id)
            ->where('schoolyear_id', $notice->schoolyear_id)
            ->where('start_date', $notice->start_date)
            ->where('end_date', $notice->end_date)
            ->delete();

        Log::channel('database')->info($notice->minor_id . ": Coda cancellata from notice trait");
    }
}


Zerion Mini Shell 1.0