ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
use Laravel\Telescope\Storage\EntryModel;
|
||||
use Laravel\Telescope\Storage\EntryQueryOptions;
|
||||
|
||||
$data = new EntryModel;
|
||||
$data = $data->whereIn('content->method', ['DELETE', 'PUT']);
|
||||
$data = $data->orderBy("created_at", "DESC")->get();
|
||||
$json = [];
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
foreach($data AS $d)
|
||||
{
|
||||
$row['ip_address'] = $d->content['ip_address'];
|
||||
$row['created_at'] = $d->created_at;
|
||||
$method = $d->content['method'];
|
||||
if($method == "PUT") $method = "UPDATE";
|
||||
$row['method'] = $method;
|
||||
$table = $d->content['uri'];
|
||||
$table = str_replace("/admin/save-json/", "", $table);
|
||||
$table = str_replace("/admin/remove/", "", $table);
|
||||
|
||||
$row['table'] = $table;
|
||||
$payload = $d->content['payload'];
|
||||
unset($payload['_token']);
|
||||
unset($payload['module']);
|
||||
|
||||
$row['payload'] = json_encode_tr($payload);
|
||||
$row['user'] = @$d->content['user']['name'];
|
||||
$row['user_id'] = @$d->content['user']['id'];
|
||||
$json[] = $row;
|
||||
}
|
||||
|
||||
echo json_encode_tr($json);
|
||||
?>
|
||||
Reference in New Issue
Block a user