app/Http/Controllers/TransactionController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $items = Transaction::all();
        $detail = TransactionDetail::all();
        return view('transaction.index', [
            'items' => $items,
            'details' => $detail
        ]);
    }
public function index ( ) { $ items = Transaction :: all ( ) ; $ detail = TransactionDetail :: all ( ) ; return view ( 'transaction.index' , [ 'items' => $ items , 'details' => $ detail ] ) ; }
Display a listing of the resource.
Display a listing of the resource .