public function getByToken() { return Source::whereToken(session('source.token'))->with(['customers', 'customers.samples' => function ($query) { $query->orderBy('created_at', 'desc'); }, 'customers.samples.assay_result'])->first(); }