src/Http/Resources/ActivityResource.php
public function toArray($request)
    {
        /** @var \Spatie\Activitylog\Models\Activity $this->resource */
        return [
            'id'                => $this->id,
            'log_name'          => $this->log_name,
            'description'       => $this->description,
            'subject'           => $this->subject,
            'causer'            => $this->causer,
            'properties'        => $this->properties,
            'created_at'        => (string)$this->created_at,
        ];
    }
public function toArray($request)
    {
        /** @var \Spatie\Activitylog\Models\Activity $this->resource */
        return [
            'id'                => $this->id,
            'log_name'          => $this->log_name,
            'description'       => $this->description,
            'subject'           => $this->subject,
            'causer'            => $this->causer,
            'properties'        => $this->properties,
            'created_at'        => (string)$this->created_at,
        ];
    }
public function toArray ( $ request ) { /** @var \Spatie\Activitylog\Models\Activity $this->resource */ return [ 'id' => $ this -> id , 'log_name' => $ this -> log_name , 'description' => $ this -> description , 'subject' => $ this -> subject , 'causer' => $ this -> causer , 'properties' => $ this -> properties , 'created_at' => ( string ) $ this -> created_at , ] ; }
Transform the resource into an array.

@param  \Illuminate\Http\Request
@return array
Transform the resource into an array .