Simple problems require simple solutions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
376 B

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class CalculateDurationResponse extends JsonResource
{
public function toArray(Request $request)
{
return [
'days' => $this->days,
'weeks' => $this->weeks,
'week_days' => $this->weekDays,
];
}
}