mini-aspire/app/Http/Controllers/API/Admin/LoanController.php
/**
     * Retrieve a loan by id.
     */
Retrieve a loan by id.
Retrieve a loan by id .
protected function detail($id)
    {
        try {
            $loan = $this->_loanRepo->find($id);
            return $this->success("Retrieve loan successfully.", new LoanResource($loan)); 
        } catch (\Exception $e) {
            throw $e;
            return $this->error("Something when wrong!", 500);
        }
    }
protected function detail ( $ id ) { try { $ loan = $ this -> _loanRepo -> find ( $ id ) ; return $ this -> success ( " Retrieve loan successfully. " , new LoanResource ( $ loan ) ) ; } catch ( \ Exception $ e ) { throw $ e ; return $ this -> error ( " Something when wrong! " , 500 ) ; } }
Retrieve a loan by id.
Retrieve a loan by id .