Builder Pattern Method Chaining 2 code example
Example: Builder Pattern Method Chaining 2
public function index(Request $request)
{
$entries = (new ReportService())
->setYear(2020)
->getTransactionReport($request->input('project'));
// ... Other code