1652-agenciamg

Minas Gerais promove educação antirracista no Dia da Consciência Negra

* @throws 500: Internal Server Error
*/
public function delete($id)
{
$this->model->delete($id);
}

Advertisement

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}”,
* summary=”Display the specified Project”,
* tags={“Project”},
* description=”Get Project”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* ref=”#/definitions/Project”
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function show($id)
{
/** @var Project $project */
$project = $this->model->with([‘client’, ‘client.contacts’, ‘client.contacts.phoneNumbers’, ‘client.contacts.emails’, ‘client.phoneNumbers’, ‘client.emails’, ‘client.addresses’, ‘client.addresses.country’, ‘client.industry’, ‘client.size’, ‘client.currency’, ‘client.contacts.phoneNumbers.type’, ‘client.contacts.emails.type’, ‘client.phoneNumbers.type’, ‘client.emails.type’, ‘client.contacts.position’, ‘client.contacts.phoneNumbers.type’, ‘client.contacts.emails.type’, ‘client.phoneNumbers.type’, ‘client.emails.type’, ‘client.contacts.position’, ‘client.contacts.phoneNumbers.type’, ‘client.contacts.emails.type’, ‘client.phoneNumbers.type’, ‘client.emails.type’, ‘client.contacts.position’, ‘client.contacts.phoneNumbers.type’, ‘client.contacts.emails.type’, ‘client.phoneNumbers.type’, ‘client.emails.type’, ‘client.contacts.position’, ‘client.contacts.phoneNumbers.type’, ‘client.contacts.emails.type’, ‘client.phoneNumbers.type’, ‘client.emails.type’, ‘client.contacts.position’])->findOrFail($id);
return $this->sendResponse($project->toArray(), ‘Project retrieved successfully’);
}

/**
* @param int $id
* @param UpdateProjectAPIRequest $request
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Put(
* path=”/projects/{id}”,
* summary=”Update the specified Project in storage”,
* tags={“Project”},
* description=”Update Project”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Parameter(
* name=”body”,
* in=”body”,
* description=”Project that should be updated”,
* required=false,
* @SWG\Schema(ref=”#/definitions/Project”)
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* ref=”#/definitions/Project”
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function update($id, UpdateProjectAPIRequest $request)
{
$input = $request->all();

/** @var Project $project */
$project = $this->model->findOrFail($id);

$project->fill($input);
$project->save();

return $this->sendResponse($project->toArray(), ‘Project updated successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/activities”,
* summary=”Get a listing of the Project Activities.”,
* tags={“Project”},
* description=”Get all Project Activities”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Activity”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function activities($id)
{
$project = $this->model->findOrFail($id);

$activities = $project->activities()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($activities->toArray(), ‘Project Activities retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/documents”,
* summary=”Get a listing of the Project Documents.”,
* tags={“Project”},
* description=”Get all Project Documents”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Document”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function documents($id)
{
$project = $this->model->findOrFail($id);

$documents = $project->documents()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($documents->toArray(), ‘Project Documents retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/invoices”,
* summary=”Get a listing of the Project Invoices.”,
* tags={“Project”},
* description=”Get all Project Invoices”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Invoice”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function invoices($id)
{
$project = $this->model->findOrFail($id);

$invoices = $project->invoices()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($invoices->toArray(), ‘Project Invoices retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/notes”,
* summary=”Get a listing of the Project Notes.”,
* tags={“Project”},
* description=”Get all Project Notes”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Note”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function notes($id)
{
$project = $this->model->findOrFail($id);

$notes = $project->notes()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($notes->toArray(), ‘Project Notes retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/tasks”,
* summary=”Get a listing of the Project Tasks.”,
* tags={“Project”},
* description=”Get all Project Tasks”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Task”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function tasks($id)
{
$project = $this->model->findOrFail($id);

$tasks = $project->tasks()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($tasks->toArray(), ‘Project Tasks retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/team”,
* summary=”Get a listing of the Project Team.”,
* tags={“Project”},
* description=”Get all Project Team”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/User”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function team($id)
{
$project = $this->model->findOrFail($id);

$team = $project->team()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($team->toArray(), ‘Project Team retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/time-entries”,
* summary=”Get a listing of the Project Time Entries.”,
* tags={“Project”},
* description=”Get all Project Time Entries”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/TimeEntry”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function timeEntries($id)
{
$project = $this->model->findOrFail($id);

$timeEntries = $project->timeEntries()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($timeEntries->toArray(), ‘Project Time Entries retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/expenses”,
* summary=”Get a listing of the Project Expenses.”,
* tags={“Project”},
* description=”Get all Project Expenses”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Expense”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function expenses($id)
{
$project = $this->model->findOrFail($id);

$expenses = $project->expenses()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($expenses->toArray(), ‘Project Expenses retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/milestones”,
* summary=”Get a listing of the Project Milestones.”,
* tags={“Project”},
* description=”Get all Project Milestones”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Milestone”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function milestones($id)
{
$project = $this->model->findOrFail($id);

$milestones = $project->milestones()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($milestones->toArray(), ‘Project Milestones retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/discussions”,
* summary=”Get a listing of the Project Discussions.”,
* tags={“Project”},
* description=”Get all Project Discussions”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Discussion”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function discussions($id)
{
$project = $this->model->findOrFail($id);

$discussions = $project->discussions()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($discussions->toArray(), ‘Project Discussions retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/comments”,
* summary=”Get a listing of the Project Comments.”,
* tags={“Project”},
* description=”Get all Project Comments”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Comment”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function comments($id)
{
$project = $this->model->findOrFail($id);

$comments = $project->comments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($comments->toArray(), ‘Project Comments retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/files”,
* summary=”Get a listing of the Project Files.”,
* tags={“Project”},
* description=”Get all Project Files”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/File”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function files($id)
{
$project = $this->model->findOrFail($id);

$files = $project->files()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($files->toArray(), ‘Project Files retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/events”,
* summary=”Get a listing of the Project Events.”,
* tags={“Project”},
* description=”Get all Project Events”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Event”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function events($id)
{
$project = $this->model->findOrFail($id);

$events = $project->events()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($events->toArray(), ‘Project Events retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/tickets”,
* summary=”Get a listing of the Project Tickets.”,
* tags={“Project”},
* description=”Get all Project Tickets”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/Ticket”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function tickets($id)
{
$project = $this->model->findOrFail($id);

$tickets = $project->tickets()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($tickets->toArray(), ‘Project Tickets retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-expenses”,
* summary=”Get a listing of the Project Recurring Expenses.”,
* tags={“Project”},
* description=”Get all Project Recurring Expenses”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringExpense”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringExpenses($id)
{
$project = $this->model->findOrFail($id);

$recurringExpenses = $project->recurringExpenses()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringExpenses->toArray(), ‘Project Recurring Expenses retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-invoices”,
* summary=”Get a listing of the Project Recurring Invoices.”,
* tags={“Project”},
* description=”Get all Project Recurring Invoices”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringInvoice”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringInvoices($id)
{
$project = $this->model->findOrFail($id);

$recurringInvoices = $project->recurringInvoices()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringInvoices->toArray(), ‘Project Recurring Invoices retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tasks”,
* summary=”Get a listing of the Project Recurring Tasks.”,
* tags={“Project”},
* description=”Get all Project Recurring Tasks”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTask”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTasks($id)
{
$project = $this->model->findOrFail($id);

$recurringTasks = $project->recurringTasks()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTasks->toArray(), ‘Project Recurring Tasks retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tickets”,
* summary=”Get a listing of the Project Recurring Tickets.”,
* tags={“Project”},
* description=”Get all Project Recurring Tickets”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTicket”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTickets($id)
{
$project = $this->model->findOrFail($id);

$recurringTickets = $project->recurringTickets()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTickets->toArray(), ‘Project Recurring Tickets retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-events”,
* summary=”Get a listing of the Project Recurring Events.”,
* tags={“Project”},
* description=”Get all Project Recurring Events”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringEvent”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringEvents($id)
{
$project = $this->model->findOrFail($id);

$recurringEvents = $project->recurringEvents()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringEvents->toArray(), ‘Project Recurring Events retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-discussions”,
* summary=”Get a listing of the Project Recurring Discussions.”,
* tags={“Project”},
* description=”Get all Project Recurring Discussions”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringDiscussion”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringDiscussions($id)
{
$project = $this->model->findOrFail($id);

$recurringDiscussions = $project->recurringDiscussions()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringDiscussions->toArray(), ‘Project Recurring Discussions retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-files”,
* summary=”Get a listing of the Project Recurring Files.”,
* tags={“Project”},
* description=”Get all Project Recurring Files”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringFile”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringFiles($id)
{
$project = $this->model->findOrFail($id);

$recurringFiles = $project->recurringFiles()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringFiles->toArray(), ‘Project Recurring Files retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-notes”,
* summary=”Get a listing of the Project Recurring Notes.”,
* tags={“Project”},
* description=”Get all Project Recurring Notes”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringNote”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringNotes($id)
{
$project = $this->model->findOrFail($id);

$recurringNotes = $project->recurringNotes()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringNotes->toArray(), ‘Project Recurring Notes retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-activities”,
* summary=”Get a listing of the Project Recurring Activities.”,
* tags={“Project”},
* description=”Get all Project Recurring Activities”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringActivity”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringActivities($id)
{
$project = $this->model->findOrFail($id);

$recurringActivities = $project->recurringActivities()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringActivities->toArray(), ‘Project Recurring Activities retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-comments”,
* summary=”Get a listing of the Project Recurring Comments.”,
* tags={“Project”},
* description=”Get all Project Recurring Comments”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringComment”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringComments($id)
{
$project = $this->model->findOrFail($id);

$recurringComments = $project->recurringComments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringComments->toArray(), ‘Project Recurring Comments retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-team”,
* summary=”Get a listing of the Project Recurring Team.”,
* tags={“Project”},
* description=”Get all Project Recurring Team”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTeam”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTeam($id)
{
$project = $this->model->findOrFail($id);

$recurringTeam = $project->recurringTeam()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTeam->toArray(), ‘Project Recurring Team retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-time-entries”,
* summary=”Get a listing of the Project Recurring Time Entries.”,
* tags={“Project”},
* description=”Get all Project Recurring Time Entries”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTimeEntry”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTimeEntries($id)
{
$project = $this->model->findOrFail($id);

$recurringTimeEntries = $project->recurringTimeEntries()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTimeEntries->toArray(), ‘Project Recurring Time Entries retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-milestones”,
* summary=”Get a listing of the Project Recurring Milestones.”,
* tags={“Project”},
* description=”Get all Project Recurring Milestones”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringMilestone”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringMilestones($id)
{
$project = $this->model->findOrFail($id);

$recurringMilestones = $project->recurringMilestones()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringMilestones->toArray(), ‘Project Recurring Milestones retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-documents”,
* summary=”Get a listing of the Project Recurring Documents.”,
* tags={“Project”},
* description=”Get all Project Recurring Documents”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringDocument”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringDocuments($id)
{
$project = $this->model->findOrFail($id);

$recurringDocuments = $project->recurringDocuments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringDocuments->toArray(), ‘Project Recurring Documents retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-invoices”,
* summary=”Get a listing of the Project Recurring Invoices.”,
* tags={“Project”},
* description=”Get all Project Recurring Invoices”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringInvoice”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringInvoices2($id)
{
$project = $this->model->findOrFail($id);

$recurringInvoices = $project->recurringInvoices()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringInvoices->toArray(), ‘Project Recurring Invoices retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-expenses”,
* summary=”Get a listing of the Project Recurring Expenses.”,
* tags={“Project”},
* description=”Get all Project Recurring Expenses”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringExpense”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringExpenses2($id)
{
$project = $this->model->findOrFail($id);

$recurringExpenses = $project->recurringExpenses()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringExpenses->toArray(), ‘Project Recurring Expenses retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tasks”,
* summary=”Get a listing of the Project Recurring Tasks.”,
* tags={“Project”},
* description=”Get all Project Recurring Tasks”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTask”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTasks2($id)
{
$project = $this->model->findOrFail($id);

$recurringTasks = $project->recurringTasks()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTasks->toArray(), ‘Project Recurring Tasks retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tickets”,
* summary=”Get a listing of the Project Recurring Tickets.”,
* tags={“Project”},
* description=”Get all Project Recurring Tickets”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTicket”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTickets2($id)
{
$project = $this->model->findOrFail($id);

$recurringTickets = $project->recurringTickets()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTickets->toArray(), ‘Project Recurring Tickets retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-events”,
* summary=”Get a listing of the Project Recurring Events.”,
* tags={“Project”},
* description=”Get all Project Recurring Events”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringEvent”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringEvents2($id)
{
$project = $this->model->findOrFail($id);

$recurringEvents = $project->recurringEvents()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringEvents->toArray(), ‘Project Recurring Events retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-discussions”,
* summary=”Get a listing of the Project Recurring Discussions.”,
* tags={“Project”},
* description=”Get all Project Recurring Discussions”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringDiscussion”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringDiscussions2($id)
{
$project = $this->model->findOrFail($id);

$recurringDiscussions = $project->recurringDiscussions()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringDiscussions->toArray(), ‘Project Recurring Discussions retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-files”,
* summary=”Get a listing of the Project Recurring Files.”,
* tags={“Project”},
* description=”Get all Project Recurring Files”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringFile”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringFiles2($id)
{
$project = $this->model->findOrFail($id);

$recurringFiles = $project->recurringFiles()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringFiles->toArray(), ‘Project Recurring Files retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-notes”,
* summary=”Get a listing of the Project Recurring Notes.”,
* tags={“Project”},
* description=”Get all Project Recurring Notes”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringNote”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringNotes2($id)
{
$project = $this->model->findOrFail($id);

$recurringNotes = $project->recurringNotes()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringNotes->toArray(), ‘Project Recurring Notes retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-activities”,
* summary=”Get a listing of the Project Recurring Activities.”,
* tags={“Project”},
* description=”Get all Project Recurring Activities”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringActivity”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringActivities2($id)
{
$project = $this->model->findOrFail($id);

$recurringActivities = $project->recurringActivities()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringActivities->toArray(), ‘Project Recurring Activities retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-comments”,
* summary=”Get a listing of the Project Recurring Comments.”,
* tags={“Project”},
* description=”Get all Project Recurring Comments”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringComment”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringComments2($id)
{
$project = $this->model->findOrFail($id);

$recurringComments = $project->recurringComments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringComments->toArray(), ‘Project Recurring Comments retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-team”,
* summary=”Get a listing of the Project Recurring Team.”,
* tags={“Project”},
* description=”Get all Project Recurring Team”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTeam”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTeam2($id)
{
$project = $this->model->findOrFail($id);

$recurringTeam = $project->recurringTeam()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTeam->toArray(), ‘Project Recurring Team retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-time-entries”,
* summary=”Get a listing of the Project Recurring Time Entries.”,
* tags={“Project”},
* description=”Get all Project Recurring Time Entries”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTimeEntry”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTimeEntries2($id)
{
$project = $this->model->findOrFail($id);

$recurringTimeEntries = $project->recurringTimeEntries()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTimeEntries->toArray(), ‘Project Recurring Time Entries retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-milestones”,
* summary=”Get a listing of the Project Recurring Milestones.”,
* tags={“Project”},
* description=”Get all Project Recurring Milestones”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringMilestone”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringMilestones2($id)
{
$project = $this->model->findOrFail($id);

$recurringMilestones = $project->recurringMilestones()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringMilestones->toArray(), ‘Project Recurring Milestones retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-documents”,
* summary=”Get a listing of the Project Recurring Documents.”,
* tags={“Project”},
* description=”Get all Project Recurring Documents”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringDocument”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringDocuments2($id)
{
$project = $this->model->findOrFail($id);

$recurringDocuments = $project->recurringDocuments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringDocuments->toArray(), ‘Project Recurring Documents retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-invoices”,
* summary=”Get a listing of the Project Recurring Invoices.”,
* tags={“Project”},
* description=”Get all Project Recurring Invoices”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringInvoice”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringInvoices3($id)
{
$project = $this->model->findOrFail($id);

$recurringInvoices = $project->recurringInvoices()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringInvoices->toArray(), ‘Project Recurring Invoices retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-expenses”,
* summary=”Get a listing of the Project Recurring Expenses.”,
* tags={“Project”},
* description=”Get all Project Recurring Expenses”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringExpense”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringExpenses3($id)
{
$project = $this->model->findOrFail($id);

$recurringExpenses = $project->recurringExpenses()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringExpenses->toArray(), ‘Project Recurring Expenses retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tasks”,
* summary=”Get a listing of the Project Recurring Tasks.”,
* tags={“Project”},
* description=”Get all Project Recurring Tasks”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTask”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTasks3($id)
{
$project = $this->model->findOrFail($id);

$recurringTasks = $project->recurringTasks()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTasks->toArray(), ‘Project Recurring Tasks retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tickets”,
* summary=”Get a listing of the Project Recurring Tickets.”,
* tags={“Project”},
* description=”Get all Project Recurring Tickets”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTicket”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTickets3($id)
{
$project = $this->model->findOrFail($id);

$recurringTickets = $project->recurringTickets()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTickets->toArray(), ‘Project Recurring Tickets retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-events”,
* summary=”Get a listing of the Project Recurring Events.”,
* tags={“Project”},
* description=”Get all Project Recurring Events”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringEvent”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringEvents3($id)
{
$project = $this->model->findOrFail($id);

$recurringEvents = $project->recurringEvents()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringEvents->toArray(), ‘Project Recurring Events retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-discussions”,
* summary=”Get a listing of the Project Recurring Discussions.”,
* tags={“Project”},
* description=”Get all Project Recurring Discussions”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringDiscussion”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringDiscussions3($id)
{
$project = $this->model->findOrFail($id);

$recurringDiscussions = $project->recurringDiscussions()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringDiscussions->toArray(), ‘Project Recurring Discussions retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-files”,
* summary=”Get a listing of the Project Recurring Files.”,
* tags={“Project”},
* description=”Get all Project Recurring Files”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringFile”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringFiles3($id)
{
$project = $this->model->findOrFail($id);

$recurringFiles = $project->recurringFiles()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringFiles->toArray(), ‘Project Recurring Files retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-notes”,
* summary=”Get a listing of the Project Recurring Notes.”,
* tags={“Project”},
* description=”Get all Project Recurring Notes”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringNote”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringNotes3($id)
{
$project = $this->model->findOrFail($id);

$recurringNotes = $project->recurringNotes()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringNotes->toArray(), ‘Project Recurring Notes retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-activities”,
* summary=”Get a listing of the Project Recurring Activities.”,
* tags={“Project”},
* description=”Get all Project Recurring Activities”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringActivity”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringActivities3($id)
{
$project = $this->model->findOrFail($id);

$recurringActivities = $project->recurringActivities()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringActivities->toArray(), ‘Project Recurring Activities retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-comments”,
* summary=”Get a listing of the Project Recurring Comments.”,
* tags={“Project”},
* description=”Get all Project Recurring Comments”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringComment”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringComments3($id)
{
$project = $this->model->findOrFail($id);

$recurringComments = $project->recurringComments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringComments->toArray(), ‘Project Recurring Comments retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-team”,
* summary=”Get a listing of the Project Recurring Team.”,
* tags={“Project”},
* description=”Get all Project Recurring Team”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTeam”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTeam3($id)
{
$project = $this->model->findOrFail($id);

$recurringTeam = $project->recurringTeam()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTeam->toArray(), ‘Project Recurring Team retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-time-entries”,
* summary=”Get a listing of the Project Recurring Time Entries.”,
* tags={“Project”},
* description=”Get all Project Recurring Time Entries”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTimeEntry”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTimeEntries3($id)
{
$project = $this->model->findOrFail($id);

$recurringTimeEntries = $project->recurringTimeEntries()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringTimeEntries->toArray(), ‘Project Recurring Time Entries retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-milestones”,
* summary=”Get a listing of the Project Recurring Milestones.”,
* tags={“Project”},
* description=”Get all Project Recurring Milestones”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringMilestone”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringMilestones3($id)
{
$project = $this->model->findOrFail($id);

$recurringMilestones = $project->recurringMilestones()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringMilestones->toArray(), ‘Project Recurring Milestones retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-documents”,
* summary=”Get a listing of the Project Recurring Documents.”,
* tags={“Project”},
* description=”Get all Project Recurring Documents”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringDocument”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringDocuments3($id)
{
$project = $this->model->findOrFail($id);

$recurringDocuments = $project->recurringDocuments()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringDocuments->toArray(), ‘Project Recurring Documents retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-invoices”,
* summary=”Get a listing of the Project Recurring Invoices.”,
* tags={“Project”},
* description=”Get all Project Recurring Invoices”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringInvoice”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringInvoices4($id)
{
$project = $this->model->findOrFail($id);

$recurringInvoices = $project->recurringInvoices()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringInvoices->toArray(), ‘Project Recurring Invoices retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-expenses”,
* summary=”Get a listing of the Project Recurring Expenses.”,
* tags={“Project”},
* description=”Get all Project Recurring Expenses”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringExpense”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringExpenses4($id)
{
$project = $this->model->findOrFail($id);

$recurringExpenses = $project->recurringExpenses()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)
->get();

return $this->sendResponse($recurringExpenses->toArray(), ‘Project Recurring Expenses retrieved successfully’);
}

/**
* @param int $id
* @return \Illuminate\Http\JsonResponse
*
* @SWG\Get(
* path=”/projects/{id}/recurring-tasks”,
* summary=”Get a listing of the Project Recurring Tasks.”,
* tags={“Project”},
* description=”Get all Project Recurring Tasks”,
* produces={“application/json”},
* @SWG\Parameter(
* name=”id”,
* description=”id of Project”,
* type=”integer”,
* required=true,
* in=”path”
* ),
* @SWG\Response(
* response=200,
* description=”successful operation”,
* @SWG\Schema(
* type=”object”,
* @SWG\Property(
* property=”success”,
* type=”boolean”
* ),
* @SWG\Property(
* property=”data”,
* type=”array”,
* @SWG\Items(ref=”#/definitions/RecurringTask”)
* ),
* @SWG\Property(
* property=”message”,
* type=”string”
* )
* )
* )
* )
*/
public function recurringTasks4($id)
{
$project = $this->model->findOrFail($id);

$recurringTasks = $project->recurringTasks()
->with([‘user’, ‘project’, ‘project.client’])
->orderBy(‘created_at’, ‘desc’)

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *