Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
ActivityLogsService
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 insert
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Services;
4
5use App\Models\Activity_log;
6use Illuminate\Support\Facades\Hash;
7
8class ActivityLogsService
9{
10    public function insert($data){
11        Activity_log::create([
12            'subject_id'      => $data['subject_id'],
13            'subject_type'    => $data['subject_type'],
14            'description'     => $data['description'],
15            'causer_id'       => $data['causer_id'],
16            'causer_type'     => $data['causer_type'],
17            'properties'      => $data['properties'],
18        ]);
19    }
20}