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()
    {
        $result = Transaction::all();
        return view('transaction.index', ['data'=>$result]);
    }
public function index ( ) { $ result = Transaction :: all ( ) ; return view ( 'transaction.index' , [ 'data' => $ result ] ) ; }
Display a listing of the resource.
Display a listing of the resource .